DirectSound

Started by
3 comments, last by new_man 21 years, 9 months ago
Hi everyone! Can somebody tell what should I do to make my program play mp3 files? Is it possible using DirectSound? If so, than could you give some sample code or give a reference to an article explaining this... Thanks anyway....
Advertisement
You''ll need to use DirectShow, unless you intend on writing a custom MP3 decoder. There should be samples included with the DirectX SDK for using DirectShow for this/similar things.

Tom L
refrain_from_stupidity( &me );
Are you using this for the sound for a game or to play regular music? DirectShow is definately the way to go for a game if it plays your samples fine since it''s real easy to code.

If you want to write an mp3 player or something, I''d recommend you use a custom mp3 decoding engine and feed this to a directsound buffer. If this is the route you want to go (100s of lines of code), I can email you some of the directsound setup stuff.
I want to analyses the audio and Can you (Anonymous Poster) post to me some source code too?
Thanks!
my email is nethuhost@163.com
send your samples to wsad@mailru.com please

This topic is closed to new replies.

Advertisement