iDevGames Forums
24 Bit Audio Playback - Printable Version

+- iDevGames Forums (
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: 24 Bit Audio Playback (/thread-3846.html)

24 Bit Audio Playback - TREMS - Sep 28, 2006 12:13 PM

Hi, I'm new here, but I did search through old threads to see if this topic was covered and could not find anything concerning making sure audio playback output is 24 bit when playing back audio with a 24 bit capable soundcard. I've also did a bunch of searching on the web w/ no luck.

I have an SB Audigy 2 in my PC and I'm attempting to playback audio at 24 bits of resolution. I thought this was possible with DirectSound but I cannot figure it out because when you define the WAVE_FORMAT_EXTENSIBLE values all you seem to really be doing is telling what format the output will be in - not the playback quality. Here's how I do it in my code:

waveFormatIEEEFloatEx.Format.wFormatTag = WAVE_FORMAT_IEEE_FLOAT;
waveFormatIEEEFloatEx.Format.nChannels = 2;
waveFormatIEEEFloatEx.Format.nSamplesPerSec = 44100L;
waveFormatIEEEFloatEx.Format.wBitsPerSample = 32;
waveFormatIEEEFloatEx.Format.cbSize = 22;
waveFormatIEEEFloatEx.Format.nBlockAlign = (waveFormatIEEEFloatEx.Format.nChannels * waveFormatIEEEFloatEx.Format.wBitsPerSample) / 8;
waveFormatIEEEFloatEx.Format.nAvgBytesPerSec = waveFormatIEEEFloatEx.Format.nBlockAlign * waveFormatIEEEFloatEx.Format.nSamplesPerSec;
waveFormatIEEEFloatEx.Samples.wValidBitsPerSample = 32;
waveFormatIEEEFloatEx.dwChannelMask = 0;
waveFormatIEEEFloatEx.SubFormat = KSDATAFORMAT_SUBTYPE_IEEE_FLOAT;, this is just telling DirectSound what format the audio data will be coming in (32 bit floating point) - it's not determining what quality the soundcard will be playing the output data at. I don't know where specifying to the Audigy 2 that you wish for it to playback the audio in 24 bit.

Any light that anyone could shed on this would be helpful. Thank you.


24 Bit Audio Playback - ThemsAllTook - Sep 28, 2006 01:24 PM


This forum is specifically for Macintosh game developers, so DirectSound questions would be better answered elsewhere.

Sorry we can't be of any help.

24 Bit Audio Playback - Jones - Sep 29, 2006 06:00 PM has a forum under the "community" pop-down menu. They've got loads of DirectX people there who will help you for sure. Smile