#include "audio/wav_sound_file.hpp"
#include <string.h>
#include <stdint.h>
#include <assert.h>
#include "audio/sound_error.hpp"
#include "util/log.hpp"
Go to the source code of this file.
Functions | |
static uint32_t | read32LE (PHYSFS_file *file) |
static uint16_t | read16LE (PHYSFS_file *file) |
static uint16_t read16LE | ( | PHYSFS_file * | file | ) | [inline, static] |
Definition at line 35 of file wav_sound_file.cpp.
Referenced by WavSoundFile::WavSoundFile().
00036 { 00037 uint16_t result; 00038 if(PHYSFS_readULE16(file, &result) == 0) 00039 throw SoundError("file too short"); 00040 00041 return result; 00042 }
static uint32_t read32LE | ( | PHYSFS_file * | file | ) | [inline, static] |
Definition at line 26 of file wav_sound_file.cpp.
Referenced by WavSoundFile::WavSoundFile().
00027 { 00028 uint32_t result; 00029 if(PHYSFS_readULE32(file, &result) == 0) 00030 throw SoundError("file too short"); 00031 00032 return result; 00033 }