Original Post
Hi. I''ve been attempting to figure out how to use DirectShow for a while now, and then I realized that I really don''t need to know the real nitty gritty of it. I''m basically trying to learn how to use the sound and movie playing capabilities of the DirectX API and the graphics capabilities of the OpenGL API. I''ve gotten the sound and graphics part ok, but that''s with some major handholding from the book OpenGL Game Programming. However, that only really goes over how to play .WAV and .MID files. I''d like to use .MP3 files but it seems I need to know DirectShow to do this. Well, I''ve been reading around and I really don''t understand much of it. I vaguely understand making a graph and so forth, but many tutorials give me theory.
So, I was wondering if someone could maybe give me some sample code? Say I had a file called "nomorewords.mp3" that I want to play in the background of a game. Say I have a file called "intro.avi" that I''d like to play at the opening of the game. Could someone maybe write some sample code to explicitly load these? If I see it in action and maybe some commenting, I might be able to make it more OO. Thanks in advance.