for the game I'm currently developing I need sound recordind support. In the current state orx does not support this. however it is based on OpenAL, therefore it should be rather easy to implement it. I would like to implement this feature into the engine.
In order to be usefull for others too, I would like to discuss possible orx API extensions, that are independent of OpenAL, so that it could possibly work with other underlying frameworks, too.
I'm not that familiar with both orx and OpenAL.
What I though of:
We need an additional object, different than orxSOUND, like orxSOUND_CAPTURE.
This object has properties like the audio format(bits + mono/steroe) and frequency.
Also it might be stupid to have capture objects. you usually don't capture from multiple sources at the same time.
It might be better to just have an function orxSOUND_START_CAPTURE(FORMAT, FREQUENCY, BUFFERSIZE)
after that orxSOUND_CAPTURE_EVENTs would be created. The payload would contain the audio data in the specified FORMAT. (BUFFERSIZE bytes at maximum)
for the actual capturing the default device on the system would be used.
then it might be usefull to add some functionality to playback those samples directly, without saving them in a file.