Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

kingpinzs

Need a direct music tutorial.

This topic is 5404 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Need a direct music tutorial. I am trying to play background music wav file and I cant find any good c++ direct music tutorials. does any one know were I could get some?

Share this post


Link to post
Share on other sites
Advertisement
I just switched to OpenAL and Ogg Vorbis and could not be HAPPIER with the results. Stream music (basically MP3) in the background, etc. Plus OpenAL far outperforms DirectSound in regard to features and CPU usage.

It took me about a day to understand the stuff and write the engine.

www.devmaster.net <-- openAL tutorials
www.openal.org <-- get openAL dll''s
www.vorbis.org <-- get vorbis dll''s

Share this post


Link to post
Share on other sites
I am have been looking for tutorials on adding back ground music in wav or mp3 format but I cant find very meny tutorials on this subject. I am wanting to use direct x so I wont have to pay any roltys and know that it will work on almost any windows system.
My game is programed in windows gdi for now I am going to translate it into direct x 9 later.

So does any have or know were to get a simple directx audio tutorials?

Share this post


Link to post
Share on other sites
Just looping a WAVE file is about 20 lines of code; I suggest you research it yourself.

However, saying "use Ogg/Vorbis with OpenAL" when someone is asking about DirectMusic is not helpful. DirectSound, I could understand, but DirectMusic is something totally different. Like, it comes with authoring tools, can synthesize scores based on state machine transitions, can integrate sound effect, sequencing and score all in one package, and a bunch of other things that OpenAL doesn''t pretend to do. (That''s fine; OpenAL isn''t SUPPOSED to do those things)

Share this post


Link to post
Share on other sites
The thing is I need tutorials to learn from and I cant find any good ones that are just on playing one file and looping it. I found tutorials on loading lots of sounds and do complicated things to them but not anything really simple. It looks like direct show is the easiest but I can’t find anything to compare it with. I don’t want to make a sound core I just want to play one file.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!