Record samples being played with OpenAL
Asked Answered
L

1

2

I am playing 9 loops simultaneously using OpenAL on iOS. In order for the loops to be 100% synchronized they are started playing on different threads. Any pointers/tutorials on using OpenAL to record what is being played. Wil I encounter issues recording given I am using different threads?

Laminous answered 16/1, 2011 at 5:23 Comment(0)
C
2

OpenAL on iOS doesn't support audio recording. You'd need to use audio units to play the audio and route it to both the speakers and a file.

Conditioned answered 31/3, 2011 at 14:29 Comment(2)
I'm new to ios and audio programming, i have the same problem, i built a synth using openAL cause i use the pitch shifting included.But i want to record the sound i produce with the synth and maybe send it by email. Can you explain how to route the audio to a file? Thanks!Menendez
Unfortunately, it's very hard to do that in iOS. You can't reroute anything produced by OpenAL or any of the high level audio libraries. So if you want to record to a file, you need to redo everything (including the stuff you did in OpenAL) in Audio Units. Audio Units itself is very low level (OpenAL is written on top of it), so there's no easy way to do this without learning the whole thing. Here's the top link. Good luck. developer.apple.com/library/mac/#documentation/MusicAudio/…Conditioned

© 2022 - 2024 — McMap. All rights reserved.