Use an Audio Compression Manager (ACM) conversion stream:
Converting Data from One Format to Another
If you cannot create a single stream from your format to the device's format, you will have to create two streams - one from your format to WAVE_FORMAT_PCM
, and the other from WAVE_FORMAT_PCM
to the device's format (all streams/devices have to support conversions to/from PCM).