Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2009, 7:48:42 PM (15 years ago)
Author:
rgrieder
Message:

Fixed two problems in the sound system: Buffers did not get removed from the list in the SoundManager and failed creation was not caught.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/sound/SoundBuffer.cc

    r6203 r6232  
    8181
    8282        if (this->audioBuffer_ == AL_NONE)
    83             ThrowException(General, "Sound: Standard file loader failed: " << alutGetErrorString(alutGetError()));
     83            ThrowException(General, "Sound Error: Standard file loader failed: " << alutGetErrorString(alutGetError()));
    8484    }
    8585
     
    127127            COUT(2) << "Sound: libvorbisfile: File does not seem to be an Ogg Vorbis bitstream" << std::endl;
    128128            ov_clear(&vf);
    129             ThrowException(General, "Sound: Ogg file loader failed when opening the bitstream");
     129            ThrowException(General, "Sound Error: Ogg file loader failed when opening the bitstream");
    130130        }
    131131
     
    143143                COUT(2) << "Sound: libvorbisfile: error reading the file" << std::endl;
    144144                ov_clear(&vf);
    145                 ThrowException(General, "Sound: Ogg file loader failed when decoding the file");
     145                ThrowException(General, "Sound Error: Ogg file loader failed when decoding the file");
    146146            }
    147147            else
Note: See TracChangeset for help on using the changeset viewer.