From: Andreas S. <in...@so...> - 2009-02-23 18:43:57
|
Thanks for the clarification. > but the `effect' at the beginning of the processing chain can know the filename. I don't see why it should be a problem to hand that information on to the stat effect. where would I have to look for the source info? (which structure in which source file?) Thanks! Andreas robs schrieb: > --- On Mon, 23/2/09, Andreas Sumerauer <in...@so...> wrote: > >> Question: >> Where would I look for the input file name and how can I >> make it >> available to the sox_stat_stop() function. >> > > I'm afraid stat can't really know the input file name, there might not be one, or there could be more than one. At this point it's just an audio stream that could have come from anywhere (e.g. a buffer, or an audio generator or even another application), but the `effect' at the beginning of the processing chain can know the filename. Try something like > > sox -V path/to/some/folder/test.wav -n stat > > to see what I mean--in this case, the input file name is displayed (along with some other info) by sox's input combiner. > > HTH, > Rob > > > > > |