Added sound input and recording functionality.

This commit is contained in:
Bill Meltsner
2010-04-11 12:22:40 -04:00
parent 3b841423fa
commit 585e3ec3ee
9 changed files with 278 additions and 123 deletions
+8
View File
@@ -59,6 +59,9 @@ namespace openal
// The OpenAL device.
ALCdevice * device;
// The OpenAL capture device (microphone).
ALCdevice * capture;
// The OpenAL context.
ALCcontext * context;
@@ -107,6 +110,11 @@ namespace openal
void setOrientation(float * v);
void getVelocity(float * v) const;
void setVelocity(float * v);
void record();
love::sound::SoundData * getRecordedData();
love::sound::SoundData * stopRecording(bool returnData);
bool canRecord();
}; // Audio