Click here to Skip to main content
16,011,428 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: One more question.. This is really buging me! Pin
Christian Graus18-Nov-01 14:29
protectorChristian Graus18-Nov-01 14:29 
GeneralRe: One more question.. This is really buging me! Pin
RobJones18-Nov-01 14:48
RobJones18-Nov-01 14:48 
GeneralGlobal System Keytrap Pin
Jason Hooper18-Nov-01 13:35
Jason Hooper18-Nov-01 13:35 
GeneralHTML Memory Display Pin
18-Nov-01 9:53
suss18-Nov-01 9:53 
GeneralRe: HTML Memory Display Pin
markkuk18-Nov-01 19:57
markkuk18-Nov-01 19:57 
GeneralRe: HTML Memory Display Pin
Sidney Chong20-Nov-01 22:56
Sidney Chong20-Nov-01 22:56 
GeneralMP3 Player Pin
18-Nov-01 8:41
suss18-Nov-01 8:41 
GeneralRe: MP3 Player Pin
Christian Graus18-Nov-01 10:31
protectorChristian Graus18-Nov-01 10:31 
Um... are you saying you've written a class that plays mp3's ? I don't suppose you're going to post it Wink | ;-)

As to your question, you can use DirectShow to get the length of a media file, and then do what you want with it. You just load the file and render it, but you don't play it, you just query it for it's length. If you want more info, it's at home, just remind me. I did it for a program that catalogs media files.

Alternatively there is a program on CP that does MP3 playing and displays the length, it's listed as an example of a skinable app, I forget the name/details. I remember it because I tried to get the mp3 playing code out of it, but it was in C, and that meant I couldn't play 2 mp3's at once ( I'm keen to be able to use mp3's instead of wav's for in game sounds ).



Christian

After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

GeneralRe: MP3 Player Pin
18-Nov-01 11:30
suss18-Nov-01 11:30 
GeneralRe: MP3 Player Pin
Christian Graus18-Nov-01 11:49
protectorChristian Graus18-Nov-01 11:49 
GeneralRe: MP3 Player Pin
18-Nov-01 12:08
suss18-Nov-01 12:08 
GeneralRe: MP3 Player Pin
Nish Nishant18-Nov-01 14:11
sitebuilderNish Nishant18-Nov-01 14:11 
GeneralRe: MP3 Player Pin
Christian Graus18-Nov-01 14:22
protectorChristian Graus18-Nov-01 14:22 
GeneralRe: MP3 Player Pin
l a u r e n18-Nov-01 20:53
l a u r e n18-Nov-01 20:53 
GeneralRe: MP3 Player Pin
Christian Graus19-Nov-01 0:42
protectorChristian Graus19-Nov-01 0:42 
GeneralRe: MP3 Player Pin
Alvaro Mendez19-Nov-01 11:28
Alvaro Mendez19-Nov-01 11:28 
GeneralRe: MP3 Player Pin
Christian Graus19-Nov-01 11:38
protectorChristian Graus19-Nov-01 11:38 
GeneralDisplaying Command Line Pin
luke_ratliff18-Nov-01 7:14
luke_ratliff18-Nov-01 7:14 
GeneralRe: Displaying Command Line Pin
Rick York18-Nov-01 7:52
mveRick York18-Nov-01 7:52 
Questionwhat's wrong with it? Pin
white jungle18-Nov-01 3:45
white jungle18-Nov-01 3:45 
AnswerRe: what's wrong with it? Pin
Tim Deveaux18-Nov-01 3:50
Tim Deveaux18-Nov-01 3:50 
AnswerRe: what's wrong with it? Pin
Michael P Butler18-Nov-01 3:55
Michael P Butler18-Nov-01 3:55 
Questionhow to get system font size?? Pin
Aviv Halperin18-Nov-01 2:09
Aviv Halperin18-Nov-01 2:09 
AnswerRe: how to get system font size?? Pin
Darren Schroeder18-Nov-01 15:57
Darren Schroeder18-Nov-01 15:57 
GeneralRe: how to get system font size?? Pin
Aviv Halperin18-Nov-01 18:55
Aviv Halperin18-Nov-01 18:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.