From 5848b8c8b62abe11b157c775db28d133c6e58f2f Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 29 Jul 2017 22:53:20 -0300 Subject: [PATCH] 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 --- src/modules/audio/openal/RecordingDevice.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/audio/openal/RecordingDevice.h b/src/modules/audio/openal/RecordingDevice.h index 9d6e27e35..de9f0e5d5 100644 --- a/src/modules/audio/openal/RecordingDevice.h +++ b/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;