diff options
author | Wohlstand <admin@wohlnet.ru> | 2017-10-24 18:53:35 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2017-10-24 18:53:35 +0300 |
commit | a89983b3c5b5e1024090b66f24b142e1138df2ce (patch) | |
tree | b5a244f06bcfa039749b975fafacb9b8a58e9da5 /src/adlmidi_private.hpp | |
parent | 30d9ffca384f7a429795f47b7aa3e584cf528a0c (diff) | |
download | libADLMIDI-a89983b3c5b5e1024090b66f24b142e1138df2ce.tar.gz libADLMIDI-a89983b3c5b5e1024090b66f24b142e1138df2ce.tar.bz2 libADLMIDI-a89983b3c5b5e1024090b66f24b142e1138df2ce.zip |
Fixed IMF playing!
Diffstat (limited to 'src/adlmidi_private.hpp')
-rw-r--r-- | src/adlmidi_private.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/adlmidi_private.hpp b/src/adlmidi_private.hpp index 7b1d3c3..c75dc59 100644 --- a/src/adlmidi_private.hpp +++ b/src/adlmidi_private.hpp @@ -581,7 +581,10 @@ public: bool eof() { - return mp_tell >= mp_size; + if(fp) + return std::feof(fp); + else + return mp_tell >= mp_size; } std::string _fileName; std::FILE *fp; |