summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/Src/WaveFile.cpp
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2010-12-04 03:50:55 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2010-12-04 03:50:55 +0000
commite70e6236248aebe8740a3369e613d07f351c9546 (patch)
treefcbfedcf5f06064ab1fdc721f89ad5552924feb1 /Source/Core/AudioCommon/Src/WaveFile.cpp
parent97e3a3ea6fda441b2b342f795aa0afd9de2d8e14 (diff)
Second attempt at issue 3458. Fixes issue 3458.
Replaces all occurrences of ftell and fseek with ftello and fseeko, respectively. This matters on non-win32 where only these names are altered by the _FILE_OFFSET_BITS define. Win32 still just maps the funcs to ftelli64/fseeki64. Also add some File::GetSize I had skipped in my last commit. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6515 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/AudioCommon/Src/WaveFile.cpp')
-rw-r--r--Source/Core/AudioCommon/Src/WaveFile.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/AudioCommon/Src/WaveFile.cpp b/Source/Core/AudioCommon/Src/WaveFile.cpp
index 8a175fe35c..5fddaa7fed 100644
--- a/Source/Core/AudioCommon/Src/WaveFile.cpp
+++ b/Source/Core/AudioCommon/Src/WaveFile.cpp
@@ -73,8 +73,8 @@ bool WaveFileWriter::Start(const char *filename)
Write(100 * 1000 * 1000 - 32);
// We are now at offset 44
- if (ftell(file) != 44)
- PanicAlert("wrong offset: %i", ftell(file));
+ if (ftello(file) != 44)
+ PanicAlert("wrong offset: %i", ftello(file));
return true;
}
@@ -84,11 +84,11 @@ void WaveFileWriter::Stop()
if (!file)
return;
- // u32 file_size = (u32)ftell(file);
- fseek(file, 4, SEEK_SET);
+ // u32 file_size = (u32)ftello(file);
+ fseeko(file, 4, SEEK_SET);
Write(audio_size + 36);
- fseek(file, 40, SEEK_SET);
+ fseeko(file, 40, SEEK_SET);
Write(audio_size);
fclose(file);