SameBoy/Cocoa/GBAudioClient.h

13 lines
485 B
Objective-C
Raw Normal View History

2016-03-30 20:07:55 +00:00
#import <Foundation/Foundation.h>
2017-10-12 21:02:02 +00:00
#import <Core/gb.h>
2016-03-30 20:07:55 +00:00
@interface GBAudioClient : NSObject
2021-01-13 18:59:28 +00:00
@property (nonatomic, strong) void (^renderBlock)(UInt32 sampleRate, UInt32 nFrames, GB_sample_t *buffer);
@property (nonatomic, readonly) UInt32 rate;
@property (nonatomic, readonly, getter=isPlaying) bool playing;
2016-03-30 20:07:55 +00:00
-(void) start;
-(void) stop;
-(id) initWithRendererBlock:(void (^)(UInt32 sampleRate, UInt32 nFrames, GB_sample_t *buffer)) block
2016-03-30 20:07:55 +00:00
andSampleRate:(UInt32) rate;
@end