Try AVAudioPlayer, seemingly legitimate only play formats such as MP3 and the like. Custom data stream seems unable to play!
Will the large cattle, what a good way?
Reply:
You're really big cow. Custom audio formats, you have to write your own audio parser. Then we can only resolve to pcm format. pcm is the foundation, even if you do not comply with pcm format, you can not top the iphone developed. R & D must first own a Xphone.
Your basic bad, get to know some of the basic concepts and then develop it. Pcm data are generally collected, mp3 is a better compression algorithm. Of course you can not mp3, write your own compression algorithm. I do not believe you can also write an algorithm cattle X than mp3 out. So you compress your mp3 collection directly to pcm data would be finished. If you consider security, put the mp3 compression finished just encrypt it.
Reply:
Also a big Niua

Reply:
Sorry, I was wrong, I thank the guidance
I am using PCM format. My own custom bit0 and bit1 sinusoidal representation, I am using AudioUnit to achieve. Now the problem encountered is AudioUnit are constantly carried Play and Record callbacks, always have data, such as if I have plugged a microphone to speak, then the data can callback function effectively, but there will be no recording callback is invoked. So I call their own algorithms to parse the data difficult to handle. Is there really such a recording device when access to the data and when it does have it generate a callback?
AVAudioRecorder and AVAudioPlay to achieve it? I see the data when AVAudioPlay seemingly does not support streaming, I used the code test also found no way to play their own definition of data.
No comments:
Post a Comment