Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Calculate Music File sizes
Message
 
À
21/08/2002 14:11:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00692124
Message ID:
00692129
Vues:
20
Hello Tim

the prob with getting the length from the size is;

the bitrate, length and format all change the size
a 5 minute WMA at 96k(bitrate) might = 100kb
and
a 5 minute WMA at 128k(bitrate) might = 180kb

so it is a hard thing to nail down, and I tried a couple tricks and couldn't get it to be 100% over here



>Hello,
>
>I am using VFP 6.0 and wonder if there is a function, similar to FSIZE(), that would calculate the length of a song (.wav or .mp3) in minutes:seconds based on the file's size in bytes. I've been able to write the code to perform this task, not very pretty code, but wondered if a function exists in VFP, or if someone knows of some elegant code to perform the task.
>
>Thanks in advance,
>
>Tim
Stephen McLaughlin
"Sexy Steve Valenteno", "Blastmaster"
stephenmclaughlin@gmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform