2018-01-27 20:08:06 -03:00
|
|
|
//
|
|
|
|
// AdPlugDecoder.h
|
|
|
|
// AdPlug
|
|
|
|
//
|
|
|
|
// Created by Christopher Snowhill on 1/27/18.
|
|
|
|
// Copyright 2018 __LoSnoCo__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
2018-06-28 06:59:59 -04:00
|
|
|
#import <libAdPlug/adplug.h>
|
|
|
|
#import <libAdPlug/opl.h>
|
2018-01-27 20:08:06 -03:00
|
|
|
|
|
|
|
#import "Plugin.h"
|
|
|
|
|
|
|
|
@interface AdPlugDecoder : NSObject <CogDecoder> {
|
2022-02-07 02:49:27 -03:00
|
|
|
CPlayer* m_player;
|
|
|
|
Copl* m_emu;
|
|
|
|
|
|
|
|
unsigned int subsong, samples_todo;
|
|
|
|
|
2018-01-27 20:08:06 -03:00
|
|
|
id<CogSource> source;
|
2022-02-07 02:49:27 -03:00
|
|
|
unsigned long current_pos;
|
|
|
|
unsigned long length;
|
2018-01-27 20:08:06 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void)setSource:(id<CogSource>)s;
|
|
|
|
- (id<CogSource>)source;
|
|
|
|
- (void)cleanUp;
|
|
|
|
@end
|