More voice recording
Previously I talked about a voice recording API done through Steamworks. However, OpenAL already has a simple recording API that handles this. The only thing the Steamworks API adds is compression (presumably OGG) to send the data.
I quickly implemented an OpenAL-based recording API, although I do not presently have any recording hardware device to test with. OGG compression can be added with the Ogg library that is already built into Leadwerks.
Here is my modified recording API:
static bool Sound::StartRecording(); static Sound* Sound::StopRecording();
Or in Leadwerks 5:
bool StartRecording(); shared_ptr<Sound> StopRecording();
I'm not sure if I want sound broadcast to be automatic, or if I want this to be a general-purpose sound recording API with an example that compresses the audio data and writes it to a packet.
2 Comments
Recommended Comments