mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-27 11:00:47 +00:00
13 lines
448 B
Objective-C
13 lines
448 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#import "apu.h"
|
|
|
|
@interface GBAudioClient : NSObject
|
|
@property (strong) void (^renderBlock)(UInt32 sampleRate, UInt32 nFrames, GB_sample_t *buffer);
|
|
@property (readonly) UInt32 rate;
|
|
@property (readonly, getter=isPlaying) bool playing;
|
|
-(void) start;
|
|
-(void) stop;
|
|
-(id) initWithRendererBlock:(void (^)(UInt32 sampleRate, UInt32 nFrames, GB_sample_t *buffer)) block
|
|
andSampleRate:(UInt32) rate;
|
|
@end
|