made getRecordingDevices keep already existing devices

--HG--
branch : minor-mic-input
This commit is contained in:
Raidho
2016-11-03 20:24:21 +03:00
parent 57d02dec2b
commit c7c253f449
5 changed files with 30 additions and 10 deletions
+1 -2
View File
@@ -47,7 +47,7 @@ namespace openal
class RecordingDevice : public love::audio::RecordingDevice
{
public:
RecordingDevice(const char *name, int id);
RecordingDevice(const char *name);
virtual ~RecordingDevice();
virtual bool startRecording();
virtual bool startRecording(int samples, int sampleRate, int bitDepth, int channels);
@@ -66,7 +66,6 @@ private:
int bitDepth = 16;
int channels = 1;
std::string name;
int id;
ALCdevice *device = nullptr;
}; //RecordingDevice