// // playAudio.h // myhome // // Created by user on 12-11-20. // Copyright (c) 2012年 __MyCompanyName__. All rights reserved. // #import #import #define NUM_BUFFERS 10 #define ABUF_NUM 100 #define ISAC_SIZE (240) typedef NS_ENUM(NSInteger, EquType) { k8126, k8130, kWebrtc }; typedef NS_ENUM(NSInteger, AudiodecodeType) { k711, k722, kIsac }; @interface playAudio : NSObject { AudioQueueRef queue; AudioQueueBufferRef buffers[NUM_BUFFERS]; AudioStreamBasicDescription dataformat; } @property Byte *Abuf; @property int Abuf_p; @property int Abuf_len; @property int Version; @property float vol; @property int EuqAudioType; @property int AudiodecodeType; - (void)AudioPlayStartWithMode:(int)mod; - (void)AudioEnd; - (int)AudioStartWithRate:(int)rate setChannels:(int)channels setSamples:(int)samples setBuf_samples:(int)buf_samples setVersion:(int)v; - (void)audioQueueOutputWithQueue:(AudioQueueRef)q queueBuffer:(AudioQueueBufferRef)buf; - (void)setVolume:(float)v; + (void)initAudioSession; @end