randomgen / stinkee

Reverse-engineered C++ library to control Scentee diffusers.
MIT License
0 stars 2 forks source link

Always close audio stream on error #4

Closed randomgen closed 9 years ago

randomgen commented 9 years ago

The PortAudio output stream is not always closed (Pa_CloseStream) in stinkee::Device::process when errors happen after opening the stream. For example, if the stream can't be started (Pa_StartStream).

randomgen commented 9 years ago

7ac9c3ff05b14f9cba653ffc6610df88a4fe4784 Implement Scope Guard to close audio stream