Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a small mistake in the audio input wave file destructor.

This should help with issue #15.
  • Loading branch information...
commit a41fbffa72a0e17f0c24998b7c86f159da8dd56d 1 parent 05d3df3
Yohann Ferreira authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/engine/audio/audio_input.h
View
5 src/engine/audio/audio_input.h
@@ -164,9 +164,8 @@ class WavFile : public AudioInput
_filename = file_name;
}
- ~WavFile() {
- if(_file_input) _file_input.close();
- }
+ ~WavFile()
+ { if (_file_input.is_open()) _file_input.close(); }
//! \brief Inherited functions from AudioInput class
//@{
Please sign in to comment.
Something went wrong with that request. Please try again.