Ian Green
2005-05-23 21:46:03 UTC
Hello,
Judging from archived posts, managed code can not easily capture 24-bit
audio samples. But when I tried 24-bit capture with the latest SDK (April
2005) and a capable sound card (Audigy 2 NX), it just worked.
Settings were Format.Channels=2; Format.BitsPerSample=24;
Format.BlockAlign=6. On two sound cards, not capable of 24-bit operation,
the CaptureBuffer object threw an exception when created, which is useful.
On the Audigy, the capture buffer returned what is almost certainly 24-bit
audio, although handling it in C# is a bit of a pain. (Is there a form of
Array.Copy() that understands a 24 bit source array?).
The 24 bit-ness of the result was assessed both by monitoring the USB data
flow, and from the reduction of certain spectral harmonics in the captured
audio, associated with 16 bit quantising.
Can I expect this to work reliably with other 24-bit sound cards?
Judging from archived posts, managed code can not easily capture 24-bit
audio samples. But when I tried 24-bit capture with the latest SDK (April
2005) and a capable sound card (Audigy 2 NX), it just worked.
Settings were Format.Channels=2; Format.BitsPerSample=24;
Format.BlockAlign=6. On two sound cards, not capable of 24-bit operation,
the CaptureBuffer object threw an exception when created, which is useful.
On the Audigy, the capture buffer returned what is almost certainly 24-bit
audio, although handling it in C# is a bit of a pain. (Is there a form of
Array.Copy() that understands a 24 bit source array?).
The 24 bit-ness of the result was assessed both by monitoring the USB data
flow, and from the reduction of certain spectral harmonics in the captured
audio, associated with 16 bit quantising.
Can I expect this to work reliably with other 24-bit sound cards?