Advertisement

Sound Question

Started by November 17, 2002 03:23 PM
2 comments, last by FrancoisSoft 22 years ago
Can you breifly explain how I would initialize and load a sound file in WAVE format with RIFF and 16-bit quality using DirectSound? I''m just sick and tired of using the Windows media API.
I guess nobody cares!
Advertisement
*helpful link removed*
Nah, nevermind.



[edited by - krikkit on November 22, 2002 6:13:59 PM]
if you have worked with the API this should be not too problematic, the principles of audio streaming remain the same. And worse: Direct Sound does not offer a standardized call like "LoadWave". There are various ways to do that - you can even stick to your old method. - The only thing is that you have do create a sundbuffer, an array of bytes, that holds the data chunk - and that the porperties of this soundfile (sample raten, number of channels etc) shall fit to that buffer.

Sounds complicated. But if you you look at the DirectX sample files you will find a class that can do the job for you. Better: it''s two classes for reading and writing

WaveRead
WaveWrite

Use that. It is simple and straighforwerd - just a few functions.
http://www.superfluxus.de/phpBB2

This topic is closed to new replies.

Advertisement