Generating an LPCM buffer in memory for AVAudioPlayer initWithData
Posted
by iter
on Stack Overflow
See other posts from Stack Overflow
or by iter
Published on 2010-03-28T07:46:17Z
Indexed on
2010/03/28
7:53 UTC
Read the original article
Hit count: 617
I want to generate a sound wave programmatically and play it with AVAudioPlayer. I have the code to encode my waveform as linear PCM, 44100Hz, mono, 8 bits per sample.
I am not clear on what kind of envelope I need to wrap around this buffer so that AVAudioPlayer recognizes it as PCM.
© Stack Overflow or respective owner