user1202081
user1202081

Reputation: 11

How to access data in AudioQueue buffers?

I am struggling to work out how to pass the data from buffer to an array to allow me to display what is in the buffer. Is there an example of code somewhere that is a simple record audio and read buffer? Simpler the better.

I am trying to do something in real time and not read in data from a saved file. I could paste some code that I have tried with no success.

Upvotes: 1

Views: 1977

Answers (1)

Max MacLeod
Max MacLeod

Reputation: 26682

The classic example of writing and reading to audio buffers using AudioQueue is Apple's SpeakHere sample project.

You can find tons of stuff on this and on the web. Just search on "speakhere". One standout page is Matt Gallagher's articles on Streaming and playing an MP3 stream.

Check out my personal answers also. I have some quite in depth posts on audio buffers, e.g.

iOS Stream Audio from one iOS Device to Another

Upvotes: 2

Related Questions