From: <pst...@us...> - 2011-08-05 20:33:51
|
Revision: 886 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=886&view=rev Author: pstieber Date: 2011-08-05 20:33:45 +0000 (Fri, 05 Aug 2011) Log Message: ----------- Changed c_str() to wx_str() due to Microsoft template specializations. Modified Paths: -------------- trunk/jazz/src/Audio.cpp Modified: trunk/jazz/src/Audio.cpp =================================================================== --- trunk/jazz/src/Audio.cpp 2011-08-05 20:30:37 UTC (rev 885) +++ trunk/jazz/src/Audio.cpp 2011-08-05 20:33:45 UTC (rev 886) @@ -289,7 +289,7 @@ // Get the path of the sample file. wxString SplFilePath = ::wxPathOnly(FileName); - ifstream Is(FileName.c_str()); + ifstream Is(FileName.wx_str()); int Version; Is >> Version >> mSamplingRate >> mChannelCount >> mSoftwareSynchonization; while (Is && !Is.eof()) @@ -364,7 +364,7 @@ //----------------------------------------------------------------------------- int JZSampleSet::Save(const wxString& FileName) { - ofstream Ofs(FileName.c_str()); + ofstream Ofs(FileName.wx_str()); Ofs << 1 << ' ' << mSamplingRate @@ -1060,7 +1060,7 @@ wh.data_length = (end_index - start_index) * sizeof(short); wh.length = wh.data_length + sizeof(WaveHeader); - ofstream os(FileName.c_str(), ios::out | ios::binary | ios::trunc); + ofstream os(FileName.wx_str(), ios::out | ios::binary | ios::trunc); os.write((char*)&wh, sizeof(wh)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |