Changeset 7203 in orxonox.OLD for branches/std/src/lib/sound/sound_buffer.cc
- Timestamp:
- Mar 9, 2006, 5:28:10 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/sound/sound_buffer.cc
r6836 r7203 32 32 * @param fileName The name of the File 33 33 */ 34 SoundBuffer::SoundBuffer(const char*fileName)34 SoundBuffer::SoundBuffer(const std::string& fileName) 35 35 { 36 36 this->setClassID(CL_SOUND_BUFFER, "SoundBuffer"); … … 54 54 * @returns true on success. 55 55 */ 56 bool SoundBuffer::loadWAV(const char*fileName)56 bool SoundBuffer::loadWAV(const std::string& fileName) 57 57 { 58 58 SDL_AudioSpec wavSpec; … … 61 61 62 62 /* Load the WAV */ 63 if( SDL_LoadWAV(fileName , &wavSpec, &wavBuffer, &wavLength) == NULL)63 if( SDL_LoadWAV(fileName.c_str(), &wavSpec, &wavBuffer, &wavLength) == NULL) 64 64 { 65 PRINTF(2)("Could not open %s: %s\n", fileName , SDL_GetError());65 PRINTF(2)("Could not open %s: %s\n", fileName.c_str(), SDL_GetError()); 66 66 return false; 67 67 }
Note: See TracChangeset
for help on using the changeset viewer.