From f519a493c8df7fb3af21bffc7be1f75a570dae3c Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 28 Nov 2011 20:02:07 +0000 Subject: [PATCH] Increment PortAudio refcount even if it's currently initialized Originally committed to SVN as r5920. --- aegisub/src/audio_player_portaudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/audio_player_portaudio.cpp b/aegisub/src/audio_player_portaudio.cpp index b98e62330..ed4cb6de5 100644 --- a/aegisub/src/audio_player_portaudio.cpp +++ b/aegisub/src/audio_player_portaudio.cpp @@ -60,8 +60,8 @@ PortAudioPlayer::PortAudioPlayer() { if (err != paNoError) throw PortAudioError(std::string("Failed opening PortAudio:") + Pa_GetErrorText(err)); - pa_refcount++; } + pa_refcount++; volume = 1.0f; pa_start = 0.0;