2007-10-11 19:11:58 -04:00
|
|
|
//
|
|
|
|
// GameFile.h
|
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Vincent Spader on 5/29/06.
|
|
|
|
// Copyright 2006 Vincent Spader. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
#import <GME/gme.h>
|
|
|
|
|
|
|
|
#import "Plugin.h"
|
|
|
|
|
2022-02-02 00:04:06 -03:00
|
|
|
extern gme_err_t readCallback( void* data, void* out, int count );
|
2013-10-04 12:14:47 -03:00
|
|
|
|
2007-10-11 19:11:58 -04:00
|
|
|
@interface GameDecoder : NSObject <CogDecoder> {
|
|
|
|
Music_Emu* emu;
|
|
|
|
id<CogSource> source;
|
2022-02-02 00:04:06 -03:00
|
|
|
long sampleRate;
|
2007-10-11 19:11:58 -04:00
|
|
|
long length;
|
2017-03-13 01:10:35 -03:00
|
|
|
long fade;
|
2021-10-01 23:18:42 -03:00
|
|
|
NSString* codec;
|
2007-10-11 19:11:58 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void)setSource:(id<CogSource>)s;
|
|
|
|
- (id<CogSource>)source;
|
|
|
|
|
|
|
|
@end
|