better error message text

This commit is contained in:
Volker Fischer 2009-12-05 09:41:05 +00:00
parent 7187c809c3
commit e05667268d

View file

@ -302,13 +302,13 @@ int CSound::GetActualBufferSize ( const int iDesiredBufferSizeMono )
// calculate "nearest" buffer size and set internal parameter accordingly // calculate "nearest" buffer size and set internal parameter accordingly
// first check minimum and maximum values // first check minimum and maximum values
if ( iDesiredBufferSizeMono < HWBufferInfo.lMinSize ) if ( iDesiredBufferSizeMono <= HWBufferInfo.lMinSize )
{ {
iActualBufferSizeMono = HWBufferInfo.lMinSize; iActualBufferSizeMono = HWBufferInfo.lMinSize;
} }
else else
{ {
if ( iDesiredBufferSizeMono > HWBufferInfo.lMaxSize ) if ( iDesiredBufferSizeMono >= HWBufferInfo.lMaxSize )
{ {
iActualBufferSizeMono = HWBufferInfo.lMaxSize; iActualBufferSizeMono = HWBufferInfo.lMaxSize;
} }
@ -449,7 +449,13 @@ pSound = this;
// in case we do not have a driver available, throw error // in case we do not have a driver available, throw error
if ( lNumDevs == 0 ) if ( lNumDevs == 0 )
{ {
throw CGenErr ( tr ( "No ASIO audio device (driver) found." ) ); throw CGenErr ( tr ( "<b>No ASIO audio device (driver) found.</b><br><br>"
"The " ) + APP_NAME + tr ( " software requires the low latency audio "
"interface <b>ASIO</b> to work properly. This is no standard "
"Windows audio interface and therefore a special audio driver is "
"required. Either your sound card has a native ASIO driver (which "
"is recommended) or you might want to use alternative drivers like "
"the ASIO4All or kX driver." ) );
} }
asioDrivers->removeCurrentDriver(); asioDrivers->removeCurrentDriver();