mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
made device enumeration lazy
made enumerator to first attempt aquire default device name by standard means, then to fall back to read name from opened device getRecordingDeviceCount removed for being redundant --HG-- branch : minor-mic-input
This commit is contained in:
@@ -190,20 +190,9 @@ public:
|
||||
virtual float getDopplerScale() const = 0;
|
||||
|
||||
/**
|
||||
* @return Number of recording devices.
|
||||
* @return Reference to a vector of pointers to recording devices. May be empty.
|
||||
**/
|
||||
virtual int getRecordingDeviceCount() const = 0;
|
||||
|
||||
/**
|
||||
* @param index Index number of recording device. 0 is default device.
|
||||
* @return Selected recording device.
|
||||
**/
|
||||
virtual RecordingDevice *getRecordingDevice(int index) const = 0;
|
||||
|
||||
/**
|
||||
* @return Index number of a recording device, -1 if not present.
|
||||
**/
|
||||
virtual int getRecordingDeviceIndex(RecordingDevice *device) const = 0;
|
||||
virtual std::vector<RecordingDevice*> *getRecordingDevices() = 0;
|
||||
|
||||
/**
|
||||
* Gets the distance model used for attenuation.
|
||||
|
||||
Reference in New Issue
Block a user