2016-03-30 20:07:55 +00:00
|
|
|
#import <Foundation/Foundation.h>
|
2016-06-10 12:28:50 +00:00
|
|
|
#import "apu.h"
|
2016-03-30 20:07:55 +00:00
|
|
|
|
2016-06-10 12:28:50 +00:00
|
|
|
@interface GBAudioClient : NSObject
|
|
|
|
@property (strong) void (^renderBlock)(UInt32 sampleRate, UInt32 nFrames, GB_sample_t *buffer);
|
2016-03-30 20:07:55 +00:00
|
|
|
@property (readonly) UInt32 rate;
|
|
|
|
@property (readonly, getter=isPlaying) bool playing;
|
|
|
|
-(void) start;
|
|
|
|
-(void) stop;
|
2016-06-10 12:28:50 +00:00
|
|
|
-(id) initWithRendererBlock:(void (^)(UInt32 sampleRate, UInt32 nFrames, GB_sample_t *buffer)) block
|
2016-03-30 20:07:55 +00:00
|
|
|
andSampleRate:(UInt32) rate;
|
|
|
|
@end
|