From: Pierre-Jean L. <pj-...@us...> - 2006-03-17 23:30:37
|
Update of /cvsroot/wired/wired/src/fileloader In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6986/src/fileloader Modified Files: FileStat.cpp FileStat.h FileLoader.cpp Log Message: Unicode Compliant Index: FileLoader.cpp =================================================================== RCS file: /cvsroot/wired/wired/src/fileloader/FileLoader.cpp,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** FileLoader.cpp 16 Mar 2006 20:27:58 -0000 1.31 --- FileLoader.cpp 17 Mar 2006 23:30:28 -0000 1.32 *************** *** 1043,1049 **** else preview->Disable(); - wxString FileName = fn.c_str(); FileStat Stats; ! if (Stats.StatFile(FileName.c_str())) FileInfo->SetLabel(wxString(Stats.GetFormat() + wxString(wxT(", ")) + Stats.GetBitNess() + Stats.GetLenght().Format(wxT("\t\t\t %H hours - %M minutes - %S seconds")) + --- 1043,1048 ---- else preview->Disable(); FileStat Stats; ! if (Stats.StatFile(fn.mb_str(*wxConvCurrent))) FileInfo->SetLabel(wxString(Stats.GetFormat() + wxString(wxT(", ")) + Stats.GetBitNess() + Stats.GetLenght().Format(wxT("\t\t\t %H hours - %M minutes - %S seconds")) + Index: FileStat.cpp =================================================================== RCS file: /cvsroot/wired/wired/src/fileloader/FileStat.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** FileStat.cpp 16 Mar 2006 20:27:58 -0000 1.3 --- FileStat.cpp 17 Mar 2006 23:30:27 -0000 1.4 *************** *** 7,11 **** } ! bool FileStat::StatFile(const wxChar *FileName) { SNDFILE *Info; --- 7,11 ---- } ! bool FileStat::StatFile(const char *FileName) { SNDFILE *Info; Index: FileStat.h =================================================================== RCS file: /cvsroot/wired/wired/src/fileloader/FileStat.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** FileStat.h 16 Mar 2006 20:27:58 -0000 1.3 --- FileStat.h 17 Mar 2006 23:30:28 -0000 1.4 *************** *** 28,32 **** ~FileStat(){;} ! bool StatFile(const wxChar *FileName); wxLongLong GetSampleRate(); wxLongLong GetNbChannels(); --- 28,32 ---- ~FileStat(){;} ! bool StatFile(const char *FileName); wxLongLong GetSampleRate(); wxLongLong GetNbChannels(); |