Changeset 322 for trunk/src/sdl/sdl_audio.cc
- Timestamp:
- 08/25/14 04:27:26 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sdl/sdl_audio.cc
r319 r322 43 43 nv::sound* nv::sdl::audio::load_sound( const std::string& a_path ) 44 44 { 45 Mix_Chunk *sample = Mix_LoadWAV( a_path.c_str() ); 45 // TODO: this is a really wierd error - if we remove this check, all hell gets loose 46 if ( Mix_LoadWAV_RW == nullptr || SDL_RWFromFile == nullptr ) 47 { 48 NV_LOG( LOG_ERROR, "SDL_mixer not loaded!" ); 49 } 50 Mix_Chunk *sample = Mix_LoadWAV_RW(SDL_RWFromFile(a_path.c_str(), "rb"), 1); 46 51 if ( sample == nullptr ) 47 52 {
Note: See TracChangeset
for help on using the changeset viewer.