Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bad TALDSAudioPlayer->DurationTime return value
03-08-2012, 01:07 AM (This post was last modified: 03-08-2012 03:04 AM by SleepCZ.)
Post: #1
Bad TALDSAudioPlayer->DurationTime return value
Hi, i got a problem. When I use fuction AudioPlayer->DurationTime, with some songs - +-50% I got bad return value. Problem is, that one file (3:57min) returns correct value, but other one (both are MP3) returns wrong value... Does somebody have any idea where can be problem? Thanks so much for tips.

Code:
__int64 Time;
TALDSAudioPlayer->FileName = "FILE.MP3";
TALDSAudioPlayer->Open();
Time = TALDSAudioPlayer->DurationTime();
TALDSAudioPlayer->Close();
Find all posts by this user
Quote this message in a reply
03-08-2012, 01:42 AM
Post: #2
RE: Bad TALDSAudioPlayer->DurationTime return value
Hi! How do you check/verify the time you get?

Regards,
Dave
Quote this message in a reply
03-08-2012, 02:54 AM
Post: #3
RE: Bad TALDSAudioPlayer->DurationTime return value
What do you mean? I dont know what are you asking about?
Find all posts by this user
Quote this message in a reply
03-08-2012, 05:35 AM
Post: #4
RE: Bad TALDSAudioPlayer->DurationTime return value
Well you get the time in 100 nanoseconds, and because i couldn't recreate this i wondered how you calculate the time to minutes and seconds. Maybe that's the problem instead of the component.

Dave
Quote this message in a reply
03-08-2012, 06:18 AM
Post: #5
RE: Bad TALDSAudioPlayer->DurationTime return value
Yeah... I get it... I just divided by 10E7 -> On seconds... But its not point of problem... I was trying many things and is not in convert-to-min-sec function... When i tried to ShowMessage() it i get bad value (3mins - returned +- 180sec, then try other 3min song again ShowMessage() it and returned totally bad value - +- 500sec) ... its simply returning bad value. Have no idea where is problem... Sometimes works perfectly, sometimes totally wrong.
Find all posts by this user
Quote this message in a reply
03-10-2012, 11:07 PM
Post: #6
RE: Bad TALDSAudioPlayer->DurationTime return value
So do you have any idea why this fucntion returns bad value? Open file, call DurationTime(), Close file()... sometimes work sometimes not, I will be really grateful for any tips.
Find all posts by this user
Quote this message in a reply
03-11-2012, 04:17 AM
Post: #7
RE: Bad TALDSAudioPlayer->DurationTime return value
Probably a DS issue but without further details i can't, haven't seen it fail yet. Perhaps PM/mail me the mp3 (or a part of it) or mail it to mr.Mitov.

Regards,
Dave
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)