Cog/Plugins/GME/GameDecoder.h
Christopher Snowhill ddbc38c7fe Move most large stack using buffers to the heap
This should solve most potential future stack overflows.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-07-24 18:32:47 -07:00

31 lines
521 B
Objective-C

//
// 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"
extern gme_err_t readCallback(void* data, void* out, int count);
@interface GameDecoder : NSObject <CogDecoder> {
Music_Emu* emu;
id<CogSource> source;
double sampleRate;
long length;
long fade;
NSString* codec;
int16_t sampleBuffer[1024 * 2];
}
- (void)setSource:(id<CogSource>)s;
- (id<CogSource>)source;
@end