473,396 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

code to read audio file header and get length in minutes in seconds

can someone post code to read an mp3, windows media file and PCM WAV
file header and return the play time in minutes/seconds ?
thanks
Nov 20 '05 #1
5 4486
* us*************@yahoo.com (Mad Scientist Jr) scripsit:
can someone post code to read an mp3, windows media file and PCM WAV
file header and return the play time in minutes/seconds ?


I feel sorry, I don't have code to do that, but you may find
<URL:http://www.wotsit.org/> useful.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
* us*************@yahoo.com (Mad Scientist Jr) scripsit:
can someone post code to read an mp3, windows media file and PCM WAV
file header and return the play time in minutes/seconds ?


I feel sorry, I don't have code to do that, but you may find
<URL:http://www.wotsit.org/> useful.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3

I have definately seen someone from Microsoft do it on a site such as
gotdotnet, or even msdn, unfortunately I do not have that link.

I do have a link for the exact thing in c#, been
http://www.devhood.com/tutorials/tut...tutorial_id=79
This is really nice code, and shouldnt be too hard to convert, if the
one in vb.net shows up, ill be sure to post :P

Regards,

Les Hughes

Mad Scientist Jr wrote:
can someone post code to read an mp3, windows media file and PCM WAV
file header and return the play time in minutes/seconds ?
thanks

Nov 20 '05 #4
Hi,

http://msdn.microsoft.com/vbasic/usi...un01242003.asp

Ken
----------------------
"Mad Scientist Jr" <us*************@yahoo.com> wrote in message
news:7a**************************@posting.google.c om...
can someone post code to read an mp3, windows media file and PCM WAV
file header and return the play time in minutes/seconds ?
thanks

Nov 20 '05 #5
That did the trick ! I didn't even have to convert it to vb.net, just
compiled a DLL and included it in my vb.net project. Many thanks to you,
it worked like a charm.

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JamesT | last post by:
Does anyone know how to get the information from a Wave File Header in VB.NET (or VB6). I need to check the sample rate for the correct value. JamesT
1
by: laredotornado | last post by:
Hello, I want to play an audio file embedded on my page by clicking on an audio image and the page change to a new page. Is there a cross-browser Javascript way to do this? Right now the code I...
0
by: laredotornado | last post by:
Hello, I want to play an audio file by clicking on an audio icon and not having the page switch out underneath. Right now the code I have is ... <html> <head> <title>Dictionary:...
2
by: chitara | last post by:
Hi guys!! can anyone please tell me how to convert a audio file size to length. Say I have a file(abc.mpeg) which is 4.6 MB in size & its length is 4.58 minutes. So is there any function in php...
0
by: Hans Moviat | last post by:
Hi all, I started with reading a GS1 XML file but keep getting all sorts of errors. Any advice? ------- Code ------------- 'read xml file and drop in Grid Dim strFileXML As String =...
0
by: lovecarole | last post by:
hi, i am the student who should write a program about reading wav file and do the DFT. actually i don't know how to read data of the wav song and save it into the array... if i want to read...
3
by: Udhay | last post by:
Sir, I want to read the data of an audio file in c++ (Windows). What is the API which helps to read the data of an audio file. I want to read BitRate,Audio Sample Size,Audio Sample rate and...
1
by: purplephilosopher | last post by:
ok so if i ask the user to input time in the form of minutes:seconds so for example 5 minutes, 6 seconds would be entered as 5:06 how can i get my program to read that (store the 5 as minutes,...
4
nicebasic
by: nicebasic | last post by:
I have written a small French-English Dictionary using VB. I have come to a serious problem which is new to me. Maybe I didn't notice this problem before, but it's a bad bug in my program. I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.