🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2416

Re: Audio File info

#2416
From: Michel Leunen
Date: Thu, 01 Mar 2007 20:25
24 lines
1832 bytes
bar wrote:
> No

Yes!

What Danzer was trying to tell you is that on wotsit.org, you can get a 
description of nearly all audio type/file used. Most of these files have 
a header containing the number of samples/sec, the number of channels, 
the number of bits/samples, the total length of the file. With these 
data, you can calculate yourself the duration of your audio file.

Since the duration is also given in the properties of the file (when you 
right click on the file in explorer), there must be a way to ask windows 
directly. Probably using com, ole or whatever. I can't tell you how to 
do that though, I leave it to others.

Michel
-- 
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Technical Details
Message-ID: <45e7368d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45dd5cd4@newsgroups.borland.com> <45df3c25$1@newsgroups.borland.com> <45e69935@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,687e6db85a8e21b6
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 01 Mar 2007 21:25:17 +0100
From: Michel Leunen <nospam@noreply.be>
Organization: www.leunen.com
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Audio File info
References: <45dd5cd4@newsgroups.borland.com> <45df3c25$1@newsgroups.borland.com> <45e69935@newsgroups.borland.com>
In-Reply-To: <45e69935@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.242.166.30
Message-ID: <45e7368d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1172780685 81.242.166.30 (1 Mar 2007 12:24:45 -0800)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail