changes open mode in AmAudioFile rm 'rwb' to 'w+'.

Thanks to Juha from the hint.


git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@12 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Raphael Coeffic 20 years ago
parent 3564062fbc
commit a020d00735

@ -394,7 +394,7 @@ int AmAudioFile::open(const string& filename, OpenMode mode, bool is_tmp)
open_mode = mode;
if(!is_tmp){
fp = fopen(filename.c_str(),mode == AmAudioFile::Read ? "rb" : "rwb");
fp = fopen(filename.c_str(),mode == AmAudioFile::Read ? "r" : "w+");
if(!fp){
if(mode == AmAudioFile::Read)
ERROR("file not found: %s\n",filename.c_str());

Loading…
Cancel
Save