¡@

Home 

2014/10/15 ¤U¤È 10:11:53

iphone Programming Glossary: m_outaq

where to start with audio synthesis on iPhone

http://stackoverflow.com/questions/2067267/where-to-start-with-audio-synthesis-on-iphone

queueCallback AudioQueueRef outAQ AudioQueueBufferRef outBuffer AudioStreamBasicDescription m_outFormat AudioQueueRef m_outAQ enum kBufferSizeInFrames 512 kNumBuffers 4 kSampleRate 44100 AudioQueueBufferRef m_buffers kNumBuffers bool m_isInitialised.. modulus to preserve precision m_waves kRightWave .phase fmodf phaseR 2 M_PI Enqueue the buffer AudioQueueEnqueueBuffer m_outAQ outBuffer 0 NULL bool BleepMachine SetWave int id float frequency float volume if id kLeftWave id kNumWaves return false.. 0 OSStatus result AudioQueueNewOutput m_outFormat BleepMachine staticQueueCallback this NULL NULL 0 m_outAQ if result 0 printf ERROR d n int result return false Allocate buffers for the audio UInt32 bufferSizeBytes kBufferSizeInFrames..