Ver Fonte

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
Alex Szpakowski há 8 anos atrás
pai
commit
5848b8c8b6
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      src/modules/audio/openal/RecordingDevice.h

+ 4 - 4
src/modules/audio/openal/RecordingDevice.h

@@ -65,10 +65,10 @@ public:
 
 private:
 
-	int samples = 0;
-	int sampleRate = 0;
-	int bitDepth = 0;
-	int channels = 0;
+	int samples = DEFAULT_SAMPLES;
+	int sampleRate = DEFAULT_SAMPLE_RATE;
+	int bitDepth = DEFAULT_BIT_DEPTH;
+	int channels = DEFAULT_CHANNELS;
 
 	std::string name;
 	ALCdevice *device = nullptr;