Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
Removing the Code to Process Greater than 16 Bits
Because this sample only processes 8-bit or 16-bit audio, you need to modify the code in CEcho::ValidateMediaType to return DMO_E_TYPE_NOT_ACCEPTED for media types greater than 16 bits. To accomplish this, you must change the code in the switch block that tests formats of type WAVE_FORMAT_EXTENSIBLE. Replace the wizard code with the following example code:
case WAVE_FORMAT_EXTENSIBLE:
{
// Sample size is greater than 16-bit or is multichannel.
WAVEFORMATEXTENSIBLE *pWaveXT = (WAVEFORMATEXTENSIBLE *) pWave;
if (KSDATAFORMAT_SUBTYPE_PCM != pWaveXT->SubFormat)
{
return DMO_E_TYPE_NOT_ACCEPTED;
}
}
break;
Next, delete or comment out the sections of code in DoProcessOutput that handle high bit resolution audio. These are the sections that begin with case 24 and case 32.
See Also
| Previous | Next |