You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Small refactor to audio device manager initialise (to prevent compile breakage on Mac)
This commit is contained in:
@@ -41,13 +41,16 @@ namespace openshot
|
||||
// Create the actual instance of device manager only once
|
||||
m_pInstance = new AudioDeviceManagerSingleton;
|
||||
|
||||
// Get preferred audio device name (if any)
|
||||
string preferred_audio_device = Settings::Instance()->PLAYBACK_AUDIO_DEVICE_NAME;
|
||||
|
||||
// Initialize audio device only 1 time
|
||||
String error = m_pInstance->audioDeviceManager.initialise (
|
||||
0, /* number of input channels */
|
||||
2, /* number of output channels */
|
||||
0, /* no XML settings.. */
|
||||
true, /* select default device on failure */
|
||||
Settings::Instance()->PLAYBACK_AUDIO_DEVICE_NAME /* preferredDefaultDeviceName */);
|
||||
preferred_audio_device /* preferredDefaultDeviceName */);
|
||||
|
||||
// Persist any errors detected
|
||||
if (error.isNotEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user