Changeset 392 for trunk/src/sdl/sdl_audio.cc
- Timestamp:
- 06/11/15 16:23:41 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sdl/sdl_audio.cc
r368 r392 85 85 } 86 86 87 nv::sound nv::sdl::audio::load_sound( const st d::string& a_path )87 nv::sound nv::sdl::audio::load_sound( const string_ref& a_path ) 88 88 { 89 89 // TODO: this is a really weird error - if we remove this check, all hell gets loose … … 92 92 NV_LOG_ERROR( "SDL_mixer not loaded!" ); 93 93 } 94 Mix_Chunk *sample = Mix_LoadWAV_RW(SDL_RWFromFile(a_path. c_str(), "rb"), 1);94 Mix_Chunk *sample = Mix_LoadWAV_RW(SDL_RWFromFile(a_path.data(), "rb"), 1); 95 95 if ( sample == nullptr ) 96 96 {
Note: See TracChangeset
for help on using the changeset viewer.