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: Bill Schottstaedt (bil_AT_ccrma.Stanford.EDU)
Date: Thu Mar 15 2001 - 15:41:31 EET


> 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 */


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

This archive was generated by hypermail 2b28 : Thu Mar 15 2001 - 15:54:24 EET