Fix for WaveRT WDM drivers that do not support memory mapped position register, and correct 8 channel speaker geometry mapping.
This commit is contained in:
parent
33df37a804
commit
dd82ba9976
2 changed files with 26 additions and 2 deletions
|
|
@ -4959,8 +4959,18 @@ static PaError OpenStream( struct PaUtilHostApiRepresentation *hostApi,
|
|||
|
||||
if (result != paNoError)
|
||||
{
|
||||
unsigned long pos = 0xdeadc0de;
|
||||
PA_DEBUG(("Failed to register capture position register, using PinGetAudioPositionViaIOCTL\n"));
|
||||
stream->capture.pPin->fnAudioPosition = PinGetAudioPositionViaIOCTL;
|
||||
/* Test position function */
|
||||
result = (stream->capture.pPin->fnAudioPosition)(stream->capture.pPin, &pos);
|
||||
if (result != paNoError || pos != 0x0)
|
||||
{
|
||||
PA_DEBUG(("Failed to read capture position register (IOCTL)\n"));
|
||||
PaWinWDM_SetLastErrorInfo(paUnanticipatedHostError, "Failed to read capture position register (IOCTL)");
|
||||
result = paUnanticipatedHostError;
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -5071,8 +5081,18 @@ static PaError OpenStream( struct PaUtilHostApiRepresentation *hostApi,
|
|||
|
||||
if (result != paNoError)
|
||||
{
|
||||
unsigned long pos = 0xdeadc0de;
|
||||
PA_DEBUG(("Failed to register rendering position register, using PinGetAudioPositionViaIOCTL\n"));
|
||||
stream->render.pPin->fnAudioPosition = PinGetAudioPositionViaIOCTL;
|
||||
/* Test position function */
|
||||
result = (stream->render.pPin->fnAudioPosition)(stream->render.pPin, &pos);
|
||||
if (result != paNoError || pos != 0x0)
|
||||
{
|
||||
PA_DEBUG(("Failed to read render position register (IOCTL)\n"));
|
||||
PaWinWDM_SetLastErrorInfo(paUnanticipatedHostError, "Failed to read render position register (IOCTL)");
|
||||
result = paUnanticipatedHostError;
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue