Sound Question
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.
*helpful link removed*
Nah, nevermind.
[edited by - krikkit on November 22, 2002 6:13:59 PM]
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.
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
Popular Topics
Advertisement