better error message text
This commit is contained in:
parent
7187c809c3
commit
e05667268d
1 changed files with 9 additions and 3 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue