Changeset 322 for trunk/src/sdl


Ignore:
Timestamp:
08/25/14 04:27:26 (11 years ago)
Author:
epyon
Message:
  • profiler control via define/NV_DEBUG
  • weird RELEASE mode audio error - need to investigate
  • fixed - render_state in RELEASE mode would not set depth_mask!
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sdl/sdl_audio.cc

    r319 r322  
    4343nv::sound* nv::sdl::audio::load_sound( const std::string& a_path )
    4444{
    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);
    4651        if ( sample == nullptr )
    4752        {
Note: See TracChangeset for help on using the changeset viewer.