creating a mp3 player and encoder with directsound

Started by
3 comments, last by Sleipnir 20 years, 9 months ago
how can i do that, anyone knows a tutorial for this, or like any guide i can use, i know the basics of directsound
---------------------------------------------- "Nearly all men can stand adversity, but if you want to test a man´s character give him power"-Abraham Lincolnsleipnir a.k.a odin1985Leader of Crystal Atatrium @ http://atatrium.bluewolf72.com
Advertisement
Method #1: Use DirectShow (it''s not just for movies - its for anything that needs to use one of the installed multimedia codecs). There are DirectShow samples in the DirectX SDK such as PlayWnd which will show you how to play .mp3 files. Likewise there are samples which demonstrate the encoding process. The CaptureSound DirectSound sample shows you the capture part.


Method #2: Use ACM (Audio Compression Manager) functions and DirectSound. This is essentially what DirectShow does for you though so there aren''t many reasons to do it this way.

--
Simon O''Connor
ex -Creative Asylum
Programmer &
Microsoft MVP

Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

thx any other ideas or like tutorials or articles were that can be showed?
---------------------------------------------- "Nearly all men can stand adversity, but if you want to test a man´s character give him power"-Abraham Lincolnsleipnir a.k.a odin1985Leader of Crystal Atatrium @ http://atatrium.bluewolf72.com
The DXSDK also contains some basic players for video and audio, amonst them being mp3 players.

You can certainly cut up the DirectShow/players samples and extract only the audio/mp3 portions of it, and put it into your game for full mp3 support.

I have done something similar (simplified the demo, and made a nice simple mp3 wrapper class), and can now play mp3 files in my apps.


www.cppnow.com
thx
---------------------------------------------- "Nearly all men can stand adversity, but if you want to test a man´s character give him power"-Abraham Lincolnsleipnir a.k.a odin1985Leader of Crystal Atatrium @ http://atatrium.bluewolf72.com

This topic is closed to new replies.

Advertisement