Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DirectX or WinAPI

0 views
Skip to first unread message

Tim Musschoot

unread,
Apr 21, 1999, 3:00:00 AM4/21/99
to
I'm creating a program that must be able to play different soundfiles of
different formats to (ev. different) devices at the same time. (=Mixing,
...) Can someone tell me what the best solution is? I don't know if I
should use DirectSound or the WinAPI. Is it possible to use the codec's
supplied by Windows in both systems, because I don't wanna reprogram them.
If so, how?? Which system is the fastest/most reliable ?? Any comment or
experience is welcome.

Greetings,
Tim

Benjamin GOLINVAUX

unread,
Apr 22, 1999, 3:00:00 AM4/22/99
to
MCI (old Windows multimedia) won't let you play many sounds at once.

Use directsound. Its kinda difficult to set up if you've never used COM but
look in DirectX6 sdk samples. You should check the dsstream sample....


You can mix many channels of audio in different formats (sample rate, bit
depth). However, only PCM is supported at the moment.

If you need compressed formats, then you need to use DirectShow which is
more difficult.

Benjamin


0 new messages