SlimDX audio, newb
My guess is that it doesn't like your WaveFormat, but I don't know for sure. The DirectX documentation doesn't say much about this particular method.
Does anyone know what the restrictions on waveformats are then? Or maybe you know a safe one to use that will work in my case?
Looking at it, I think that you need to multiply your BlockAlignment by 2, in which case your AverageBytesPerSecond does't need to be multiplied by Channels anymore. From the DirectX documentation for WAVEFORMATEX:
Quote:Block alignment, in bytes. The block alignment is the minimum atomic unit of data for the wFormatTag format type. If wFormatTag is WAVE_FORMAT_PCM or WAVE_FORMAT_EXTENSIBLE, nBlockAlign must be equal to the product of nChannels and wBitsPerSample divided by 8 (bits per byte).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement