mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Set non-zero default sampling parameters for RecordingDevices.
This allows RecordingDevice:start() with no arguments to work if it's being started for the first time. --HG-- branch : minor
This commit is contained in:
@@ -65,10 +65,10 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
int samples = 0;
|
int samples = DEFAULT_SAMPLES;
|
||||||
int sampleRate = 0;
|
int sampleRate = DEFAULT_SAMPLE_RATE;
|
||||||
int bitDepth = 0;
|
int bitDepth = DEFAULT_BIT_DEPTH;
|
||||||
int channels = 0;
|
int channels = DEFAULT_CHANNELS;
|
||||||
|
|
||||||
std::string name;
|
std::string name;
|
||||||
ALCdevice *device = nullptr;
|
ALCdevice *device = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user