mirror of https://github.com/odrling/Aegisub
Increment PortAudio refcount even if it's currently initialized
Originally committed to SVN as r5920.
This commit is contained in:
parent
3c83d7e326
commit
f519a493c8
|
@ -60,8 +60,8 @@ PortAudioPlayer::PortAudioPlayer() {
|
||||||
|
|
||||||
if (err != paNoError)
|
if (err != paNoError)
|
||||||
throw PortAudioError(std::string("Failed opening PortAudio:") + Pa_GetErrorText(err));
|
throw PortAudioError(std::string("Failed opening PortAudio:") + Pa_GetErrorText(err));
|
||||||
pa_refcount++;
|
|
||||||
}
|
}
|
||||||
|
pa_refcount++;
|
||||||
|
|
||||||
volume = 1.0f;
|
volume = 1.0f;
|
||||||
pa_start = 0.0;
|
pa_start = 0.0;
|
||||||
|
|
Loading…
Reference in New Issue