Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions RtAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9538,14 +9538,14 @@ bool RtApiPulse::probeDeviceOpen( unsigned int deviceId, StreamMode mode,
if ( stream_.doConvertBuffer[mode] ) setConvertInfo( mode, firstChannel );

if ( !stream_.apiHandle ) {
PulseAudioHandle *pah = new PulseAudioHandle;
if ( !pah ) {
PulseAudioHandle *pah2 = new PulseAudioHandle;
if ( !pah2 ) {
errorText_ = "RtApiPulse::probeDeviceOpen: error allocating memory for handle.";
goto error;
}

stream_.apiHandle = pah;
if ( pthread_cond_init( &pah->runnable_cv, NULL ) != 0 ) {
stream_.apiHandle = pah2;
if ( pthread_cond_init( &pah2->runnable_cv, NULL ) != 0 ) {
errorText_ = "RtApiPulse::probeDeviceOpen: error creating condition variable.";
goto error;
}
Expand Down
Loading