Click here to Skip to main content
15,897,519 members
Home / Discussions / C#
   

C#

 
GeneralInsertng Flash MX in C#.net Pin
Mehbub3-Aug-04 3:15
Mehbub3-Aug-04 3:15 
GeneralRe: Insertng Flash MX in C#.net Pin
Nick Parker3-Aug-04 3:54
protectorNick Parker3-Aug-04 3:54 
GeneralCombobox problem Pin
Fule3-Aug-04 3:01
Fule3-Aug-04 3:01 
GeneralRe: Combobox problem Pin
DougW483-Aug-04 4:55
DougW483-Aug-04 4:55 
GeneralRe: Combobox problem Pin
Fule3-Aug-04 20:17
Fule3-Aug-04 20:17 
GeneralColumns width in ListView objects Pin
ma.poggi-cons3-Aug-04 2:30
ma.poggi-cons3-Aug-04 2:30 
GeneralRe: Columns width in ListView objects Pin
Werdna3-Aug-04 12:53
Werdna3-Aug-04 12:53 
GeneralLength of audiofile Pin
Member 8094093-Aug-04 1:51
Member 8094093-Aug-04 1:51 
Hello!

I'm creating an mp3-player using DirectShow and I've got a problem. I want to show the length of the audiofile I'm playing but I can't figure out how.

When I'm e.g. playing an audio file with a length och 46sec the code below shows a length of 195sec (3m 15sec), why? Both Duration and StopTime shows the same length.


private IMediaPosition _mediaPosition;

_mediaPosition.Duration;
_mediaPosition.StopTime;


I've tried to find a pattern by playing different audio files but I have not found one.


I've looked at these pages but they seem to have the same problem.
DirectShow - Playa
DirectShow - MediaPlayer


Thanks!
Erik
GeneralWorks with some files Pin
Member 8094093-Aug-04 2:18
Member 8094093-Aug-04 2:18 
GeneralRe: Length of audiofile Pin
leppie3-Aug-04 2:19
leppie3-Aug-04 2:19 
General.net server help to connect to mobile Pin
Member 7396273-Aug-04 1:35
Member 7396273-Aug-04 1:35 
Generaldrawing with graphics Pin
blankg3-Aug-04 1:04
blankg3-Aug-04 1:04 
GeneralRe: drawing with graphics Pin
Dave Kreskowiak3-Aug-04 6:05
mveDave Kreskowiak3-Aug-04 6:05 
GeneralRe: drawing with graphics Pin
Dave Kreskowiak3-Aug-04 6:03
mveDave Kreskowiak3-Aug-04 6:03 
Questionhow to add MenuItem to Outlooks context menu Pin
Stephan Wright3-Aug-04 0:54
Stephan Wright3-Aug-04 0:54 
AnswerRe: how to add MenuItem to Outlooks context menu Pin
Luigi Casana3-Aug-04 20:57
sussLuigi Casana3-Aug-04 20:57 
GeneralLinkLabel (c#) Pin
samithas3-Aug-04 0:47
samithas3-Aug-04 0:47 
GeneralRe: LinkLabel (c#) Pin
samithas3-Aug-04 1:19
samithas3-Aug-04 1:19 
GeneralRe: LinkLabel (c#) Pin
Dave Kreskowiak3-Aug-04 6:07
mveDave Kreskowiak3-Aug-04 6:07 
GeneralRe: LinkLabel (c#) Pin
Dave Kreskowiak3-Aug-04 6:07
mveDave Kreskowiak3-Aug-04 6:07 
GeneralRe: LinkLabel (c#) Pin
Dave Kreskowiak3-Aug-04 6:16
mveDave Kreskowiak3-Aug-04 6:16 
QuestionOwner draw TreeView? Pin
misterbear3-Aug-04 0:24
misterbear3-Aug-04 0:24 
AnswerRe: Owner draw TreeView? Pin
Nick Parker3-Aug-04 3:45
protectorNick Parker3-Aug-04 3:45 
GeneralRe: Owner draw TreeView? Pin
misterbear4-Aug-04 1:37
misterbear4-Aug-04 1:37 
GeneralObjects and list boxes Pin
Barry Lapthorn2-Aug-04 23:29
protectorBarry Lapthorn2-Aug-04 23:29 

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.