1,105,409 Community Members

Best way to handle an Audio file

Member Avatar
GuruJin
Newbie Poster
14 posts since Feb 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

Hello ^^

I have been working on this for a long while now, I have added a Windows media player that I hide in the Background of my application window(form) . and lets say its named "Player"

Player. "WHAT" = gets me the Original length of the Audio file being played ?

I tried something .something. duration ... but that gets where the player is actually is .


that's for the first request.

as for the second. when I want a certain file I want to be ready to be deployed and ready to be used anywhere, is there a way to import the audio I'm using into the project rather than going "C:\.....etc" ... cause lets face it ... it wouldn't be on the "C\:...etc" when I deploy it and use it else where.

Hope I made everything clear and simple.

Thank you ya'll !

Member Avatar
Dukane
Posting Whiz in Training
284 posts since Oct 2006
Reputation Points: 25 [?]
Q&As Helped to Solve: 29 [?]
Skill Endorsements: 0 [?]
 
0
 

Have you tried Player.currentMedia.durationString()?

Member Avatar
GuruJin
Newbie Poster
14 posts since Feb 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

does the same thing, it just tells me where am I , I want something that gives me the actual duration or length of the Audio file so I can check when its done.

how about the deployment problem ... ?

Member Avatar
GuruJin
Newbie Poster
14 posts since Feb 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

Have you tried Player.currentMedia.durationString()?

aaaaah, that works perfectly now ^^; thanks ...

^^ thanks :) :) :) :) :)

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: