[linux-audio-user] sox from GUI code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



El mi?, 27-04-2005 a las 08:29 +1000, Erik de Castro Lopo escribi?:

> lachata <lachata@xxxxxxxxx> wrote:
> 
> > 	Hello. I'd like to rec from the microphone from my code. What I've done
> > is to call "sox -t ossdsp -s -r 44100 -c 1 /dev/dsp -t .wav melodia.wav
> > &" from my code (GUI). The problem is that I need to add the "&" at the
> > end, because in other case, the sistem doesn't respond. But in this way
> > I need to send a kill signal. This run ok in most of the cases, but not
> > in all of them. Sometimes, sox takes a wrong header (wrong size of the
> > file), which doesn't ocurr at all if i run sox from the command line
> > without the "&" at the end.
> > 
> > 	Does anyone have any idea that what can i do?
> 
> Thinking outside the box, is there anythng that you want from sox
> that can't be supplied by libsndfile and libsamplerate? Using these
> libraries means you wouldn't have to worry about spawning and
> controlling another process.
> 
>     http://www.mega-nerd.com/libsndfile/
>     http://www.mega-nerd.com/SRC/


	Thanks for your answer.

	
	I just want to record from /dev/dsp and then play the output file, with
the possibility to stop both. I've reading about the libraries you told
me, but i don't understand too much how to do it... I'll follow studying
it...


[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux