qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -


I have been trying to use Qt5 multimedia to record audio with QAudioInput, however, when I see If QAudioInput is started, it increases the master volume of my sound device to 100%.

How can I prevent QAudioInput from changing the master volume?

My current development platform is Linux with PalsAdio (with flat audio disabled).

How can I use QAudioInput :

  QAudioDeviceInfo device_info = QAudioDeviceInfo :: defaultInputDevice (); QAudio format format; Format.setSampleRate (44100); Format.setChannelCount (1); Format.setSampleSize (16); Format.setCodec ("Audio / PCM"); Format.setSampleType (QAudioFormat :: SignedInt); Format.setByteOrder (QAudioFormat :: LittleEndian); Std :: cout & lt; & Lt; Device_info.deviceName (). ToUtf8 (). ConstData () & lt; & Lt; Std :: endl; QAudioInput * default_device = new QAudioInput (device_info, format); QIODevice * default_io_device = default_device-> Start ();  

a QAudioInput.setVolume () method is not you I have seen that, tried to use QAudioRecorder.setVolume () and QT is telling me - "recording is not supported while setting the volume".


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -