From a020d0073577017eecc7f5e59f645d9727fa0607 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Fri, 31 Mar 2006 06:25:24 +0000 Subject: [PATCH] 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 --- core/AmAudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/AmAudio.cpp b/core/AmAudio.cpp index adaeb438..0feed9e5 100644 --- a/core/AmAudio.cpp +++ b/core/AmAudio.cpp @@ -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());