Microphone input implemented.

RecordingDevice class added
(number)love.audio.getRecordingDeviceCount() and (table)love.audio.getRecordingDevices() exposed
(bool):startRecording([samples, sampleRate, bitDepth, channels], (SoundData):stopRecording([SoundData]),
(SoundData):getData([SoundData]), (number):getSampleCount(), (number):getSampleRate(), (number):getBitDepth(),
(number):getChannels(), (string):getName(), (number):getID(), (bool):isRecording() member functions exposed
previously existed stub implementation removed
getFormat moved to love::audio::openal::Audio
getFormat arguments order swapped to (bitDepth, channels)
getFormat now returns AL_NONE if format is invalid

--HG--
branch : minor-mic-input
This commit is contained in:
Raidho
2016-10-23 17:56:52 +03:00
parent e5be492431
commit 87f0b2811e
21 changed files with 922 additions and 192 deletions
+6 -10
View File
@@ -144,23 +144,19 @@ float Audio::getDopplerScale() const
return 1.0f;
}
void Audio::record()
int Audio::getRecordingDeviceCount() const
{
return 0;
}
love::sound::SoundData *Audio::getRecordedData()
love::audio::RecordingDevice *Audio::getRecordingDevice(int index) const
{
return NULL;
return nullptr;
}
love::sound::SoundData *Audio::stopRecording(bool)
int Audio::getRecordingDeviceIndex(love::audio::RecordingDevice *device) const
{
return NULL;
}
bool Audio::canRecord()
{
return false;
return -1;
}
Audio::DistanceModel Audio::getDistanceModel() const