Re: [linux-audio-dev] soundfile duration

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] soundfile duration
From: David Birchfield (dab_AT_music.columbia.edu)
Date: Fri Mar 16 2001 - 22:44:40 EET


Thanks for all the great suggestions about this!

As using the sndinfo binary with csound returns more information about the
soundfile than I wanted, following Bill's suggestion, I used sndlib.h to
write my own simple app.

Thanks again!
David

On Thu, 15 Mar 2001, Bill Schottstaedt wrote:

> > sndinfo, comes with snd (or just with libsnd)
>
> This might do what you want using sndlib:
>
> #include <stdio.h>
> #include "sndlib.h"
> int main(int argc, char *argv[])
> {
> mus_sound_initialize();
> fprintf(stdout,"%f", mus_sound_duration(argv[1]));
> return(0);
> }
> /* gcc -o tst tst.c io.o headers.o sound.o audio.o -lasound -lm */
>

-- 
david birchfield

http://music.columbia.edu/~dab http://mojobisquits.com


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Mar 16 2001 - 23:01:28 EET