Skip to content

Commit

Permalink
Audio|Client: Replaced Con_Errors with exceptions (with -isfx, etc.)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 9, 2014
1 parent b6aef6f commit fe1420c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doomsday/client/src/audio/audiodriver.cpp
Expand Up @@ -374,7 +374,8 @@ static void selectInterfaces(audiodriverid_t defaultDriverId)
drvId = initDriverIfNeeded(CommandLine_At(++p));
if(!drivers[drvId].sfx.gen.Init)
{
LOG_AUDIO_ERROR("Audio driver '%s' does not provide an SFX interface") << getDriverName(drvId);
throw de::Error("selectInterfaces", QString("Audio driver '%1' does not provide an SFX interface")
.arg(getDriverName(drvId)));
}
appendInterface(&pos, AUDIO_ISFX, &drivers[drvId].sfx);
continue;
Expand All @@ -386,7 +387,8 @@ static void selectInterfaces(audiodriverid_t defaultDriverId)
drvId = initDriverIfNeeded(CommandLine_At(++p));
if(!drivers[drvId].music.gen.Init)
{
LOG_AUDIO_ERROR("Audio driver '%s' does not provide a Music interface") << getDriverName(drvId);
throw de::Error("selectInterfaces", QString("Audio driver '%1' does not provide a Music interface")
.arg(getDriverName(drvId)));
}
appendInterface(&pos, AUDIO_IMUSIC, &drivers[drvId].music);
continue;
Expand All @@ -398,7 +400,8 @@ static void selectInterfaces(audiodriverid_t defaultDriverId)
drvId = initDriverIfNeeded(CommandLine_At(++p));
if(!drivers[drvId].cd.gen.Init)
{
LOG_AUDIO_ERROR("Audio driver '%s' does not provide a CD interface") << getDriverName(drvId);
throw de::Error("selectInterfaces", QString("Audio driver '%1' does not provide a CD interface")
.arg(getDriverName(drvId)));
}
appendInterface(&pos, AUDIO_ICD, &drivers[drvId].cd);
continue;
Expand Down

0 comments on commit fe1420c

Please sign in to comment.