Changeset 365 for trunk/src/sdl/sdl_audio.cc
- Timestamp:
- 05/16/15 17:40:16 (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:global-ignores
set to
vs2012
vs2013
gmake
gmake-clang
-
Property
svn:global-ignores
set to
-
trunk/src/sdl/sdl_audio.cc
r330 r365 21 21 if ( SDL_Init( SDL_INIT_AUDIO ) == -1 ) 22 22 { 23 NV_LOG ( LOG_CRITICAL, "SDL_AUDIO failed to load -- " <<SDL_GetError() );23 NV_LOG_CRITICAL( "SDL_AUDIO failed to load -- ", SDL_GetError() ); 24 24 return; 25 25 } … … 27 27 if( Mix_OpenAudio( 44100, MIX_DEFAULT_FORMAT, 2, 1024 ) == -1 ) 28 28 { 29 NV_LOG ( LOG_CRITICAL, "SDL_mixer failed to load -- " <<Mix_GetError() );29 NV_LOG_CRITICAL( "SDL_mixer failed to load -- ", Mix_GetError() ); 30 30 return; 31 31 } … … 40 40 if ( channel == -1 ) 41 41 { 42 NV_LOG ( LOG_WARNING, "SDL_mixer failed to play -- " <<Mix_GetError() );42 NV_LOG_WARNING( "SDL_mixer failed to play -- ", Mix_GetError() ); 43 43 } 44 44 else … … 67 67 if ( channel == -1 ) 68 68 { 69 NV_LOG ( LOG_WARNING, "SDL_mixer failed to play -- " <<Mix_GetError() );69 NV_LOG_WARNING( "SDL_mixer failed to play -- ", Mix_GetError() ); 70 70 } 71 71 else … … 91 91 if ( Mix_LoadWAV_RW == nullptr || SDL_RWFromFile == nullptr ) 92 92 { 93 NV_LOG ( LOG_ERROR,"SDL_mixer not loaded!" );93 NV_LOG_ERROR( "SDL_mixer not loaded!" ); 94 94 } 95 95 Mix_Chunk *sample = Mix_LoadWAV_RW(SDL_RWFromFile(a_path.c_str(), "rb"), 1); 96 96 if ( sample == nullptr ) 97 97 { 98 NV_LOG ( LOG_ERROR, "SDL_mixer failed to load sample '" << a_path << "' -- " <<Mix_GetError() );98 NV_LOG_ERROR( "SDL_mixer failed to load sample '", a_path, "' -- ", Mix_GetError() ); 99 99 return sound(); 100 100 }
Note: See TracChangeset
for help on using the changeset viewer.