Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 292 of file audio_wavein.cpp.
{ // // If wavein object is already in the status // NOTREADY, nothing to do. // if ( status == WAVEIN_NOTREADY ) return; // // If the wavein is recording, // then stop recording and close it. // if ( status == WAVEIN_RECORDING ) stop_recording(); // // Updating status. // status = WAVEIN_NOTREADY; // // Wakeing up recording thread, so it // can receive the `MM_WIM_CLOSE' message // then dies. // if ( wakeup_recthread ) SetEvent( wakeup_recthread ); // // Closing wavein stream // while (( waveInClose( wavein_handle )) != MMSYSERR_NOERROR ) Sleep( 1 ); // // Release buffers memory. // free_buffers_mem_(); // // Re-initialize variables to the // initial state. // init_(); }