You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Persist any error returned by JUCE during initialise() method, such as sample rate issues on Windows (when playback and recording sample rates do not match, which breaks WASAPI)
This commit is contained in:
@@ -953,11 +953,15 @@ void Frame::Play()
|
||||
return;
|
||||
|
||||
AudioDeviceManager deviceManager;
|
||||
deviceManager.initialise (0, /* number of input channels */
|
||||
String error = deviceManager.initialise (0, /* number of input channels */
|
||||
2, /* number of output channels */
|
||||
0, /* no XML settings.. */
|
||||
true /* select default device on failure */);
|
||||
//deviceManager.playTestSound();
|
||||
|
||||
// Output error (if any)
|
||||
if (error.isNotEmpty()) {
|
||||
cout << "Error on initialise(): " << error.toStdString() << endl;
|
||||
}
|
||||
|
||||
AudioSourcePlayer audioSourcePlayer;
|
||||
deviceManager.addAudioCallback (&audioSourcePlayer);
|
||||
|
||||
Reference in New Issue
Block a user