Changeset 7203 in orxonox.OLD for branches/std/src/lib/sound/ogg_player.cc
- Timestamp:
- Mar 9, 2006, 5:28:10 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/sound/ogg_player.cc
r6987 r7203 31 31 * @param fileName the file to load 32 32 */ 33 OggPlayer::OggPlayer(const char*fileName)33 OggPlayer::OggPlayer(const std::string& fileName) 34 34 { 35 35 this->setClassID(CL_SOUND_OGG_PLAYER, "OggPlayer"); … … 40 40 this->buffers[1] = 0; 41 41 42 if ( fileName != NULL)42 if (!fileName.empty()) 43 43 { 44 44 if (this->open(fileName)) … … 56 56 * @param fileName the file to open 57 57 */ 58 bool OggPlayer::open(const char*fileName)58 bool OggPlayer::open(const std::string& fileName) 59 59 { 60 60 if (this->buffers[0] == 0) … … 72 72 int result; 73 73 74 if(!(oggFile = fopen(fileName , "rb")))74 if(!(oggFile = fopen(fileName.c_str(), "rb"))) 75 75 { 76 76 PRINTF(2)("Could not open Ogg file.");
Note: See TracChangeset
for help on using the changeset viewer.