Changeset 3055 for code/branches/sound2/src/orxonox/sound/SoundBase.cc
- Timestamp:
- May 25, 2009, 1:53:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound2/src/orxonox/sound/SoundBase.cc
r3013 r3055 148 148 if(filename.find("ogg", 0) != std::string::npos) 149 149 { 150 COUT(2) << "Sound: Trying fallback ogg loader" << std::endl; 150 151 this->buffer_ = loadOggFile(filename); 151 152 } 152 153 153 if(this->buffer_ == AL_NONE) 154 if(this->buffer_ == AL_NONE) 155 { 156 COUT(2) << "Sound: fallback ogg loader failed: " << alutGetErrorString(alutGetError()) << std::endl; 154 157 return false; 158 } 155 159 } 156 160 … … 158 162 alSourcei(this->source_, AL_BUFFER, this->buffer_); 159 163 if(alGetError() != AL_NO_ERROR) { 160 COUT(2) << "Sound: OpenAL: Error loading sample file "<< std::endl;164 COUT(2) << "Sound: OpenAL: Error loading sample file: " << filename << std::endl; 161 165 return false; 162 166 } … … 172 176 ALuint SoundBase::loadOggFile(std::string filename) 173 177 { 174 COUT(2) << "Sound: Trying fallback ogg loader";175 176 178 char inbuffer[4096]; 177 179 std::vector<char> outbuffer; … … 207 209 } 208 210 } 209 211 210 212 ov_clear(&vf); 211 213
Note: See TracChangeset
for help on using the changeset viewer.