Increment PortAudio refcount even if it's currently initialized

Originally committed to SVN as r5920.
This commit is contained in:
Thomas Goyne 2011-11-28 20:02:07 +00:00
parent 3c83d7e326
commit f519a493c8
1 changed files with 1 additions and 1 deletions

View File

@ -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;