mirror of
https://git.freebsd.org/ports.git
synced 2025-07-13 23:39:20 -04:00
Documents that require doxygen have been separated into DOXYGEN option. It is off by default. This should fix an issue where no matter what we choose, we could only output audio to the default sink. In particular, it is a fix that has become necessary to make JACK work well. Fixed stage-qa error - link with libpython. PR: 277648
22 lines
982 B
C++
22 lines
982 B
C++
--- src/Qt/AudioPlaybackThread.cpp.orig 2023-04-19 22:01:02 UTC
|
|
+++ src/Qt/AudioPlaybackThread.cpp
|
|
@@ -102,8 +102,17 @@ namespace openshot
|
|
|
|
// Settings for audio device playback
|
|
AudioDeviceManager::AudioDeviceSetup deviceSetup = AudioDeviceManager::AudioDeviceSetup();
|
|
- deviceSetup.inputChannels = 0;
|
|
- deviceSetup.outputChannels = channels;
|
|
+ deviceSetup.outputDeviceName = attempt_device.name;
|
|
+ deviceSetup.inputDeviceName = "";
|
|
+ //deviceSetup.inputChannels = 0;
|
|
+ deviceSetup.inputChannels.clear();
|
|
+ deviceSetup.useDefaultInputChannels = false;
|
|
+ //deviceSetup.outputChannels = channels;
|
|
+ deviceSetup.outputChannels.clear();
|
|
+ for (int i = 0; i < channels; ++i) {
|
|
+ deviceSetup.outputChannels.setBit(i);
|
|
+ }
|
|
+ deviceSetup.useDefaultOutputChannels = false;
|
|
|
|
// Loop through common sample rates, starting with the user's requested rate
|
|
// Not all sample rates are supported by audio devices, for example, many VMs
|