Re: [LAD] Tutorial for programming with JACK

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <Linux-audio-dev@...>
Date: Thursday, March 8, 2012 - 12:08 am

Hi expertsI have some more beginner questions about j=
ack API.Long time ago i writed lil test program - sine signal ge=
nerator with OSS output and TUI level indicators.http://martini=
=2Epudele.com/radio/demos/sin_gen-01.cIt is possible with (curse=
s-ansi escapes) TUI vary sine parameters - Frequency and amplitude. Program is so structured : i=
nt  main ( int argc, char *argv[] ) { =
open_sound_device();    for(;;)  &#16=
0; {         // calc sine wave here        status =3D write(audio_fd,audio_buffer,B=
UFFA_SIZE*2);     } // for;;   close_sound_device();} // main Is it possible this program __as_is__ rewrite for jack o=
utput ?Sine values do no multiple with 32767.0 and in=
stead of  open_sound_device();  write(audio=
_fd,audio_buffer,BUFFA_SIZE*2);  close_sound_device();just call jack stuff ? =3D=3D=3D=3D<=
div> Anyway - What is best (thread?, IPC?) progra=
m, structure, realtime-safe,for such simple jack-TUI program ? =3D=3D=3D=3D Normal 16=
bit sound samples must be in range-0x8000 ... +0xFFFF  or =
dec  -32768 ... +32767 signed shortbut jack server works wi=
th samples normalized -1.0 ... +1.0 float (1/327=
68) x 32767 =3D 0.999969482 Must be jack final o=
utput samples clipped in range-1.0 ... +0.999969482  ?If not, does jack clip anything to -1.0 and +0.999969482 ?<=
/div> Tnx in advace @ all=
Alfs Kurmis----

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] Tutorial for programming with JACK, Kris Calabio, (Thu Feb 16, 11:38 pm)
Re: [LAD] Tutorial for programming with JACK, Harry van Haaren, (Sat Feb 18, 2:45 pm)
Re: [LAD] Tutorial for programming with JACK, Kris Calabio, (Fri Feb 17, 2:17 pm)
Re: [LAD] Tutorial for programming with JACK, Robin Gareus, (Fri Feb 17, 3:13 pm)
Re: [LAD] Tutorial for programming with JACK, Neil C Smith, (Sat Feb 18, 11:26 am)
Re: [LAD] Tutorial for programming with JACK, Bill Gribble, (Fri Feb 17, 2:22 pm)
Re: [LAD] Tutorial for programming with JACK, Harry van Haaren, (Wed Feb 22, 1:18 pm)
Re: [LAD] Tutorial for programming with JACK, Joan Quintana, (Fri Feb 24, 10:12 am)
Re: [LAD] Tutorial for programming with JACK, Robin Gareus, (Fri Feb 24, 5:08 pm)
Re: [LAD] Tutorial for programming with JACK, Joan Quintana, (Mon Feb 27, 12:31 am)
Re: [LAD] Tutorial for programming with JACK, , (Thu Mar 8, 12:08 am)
Re: [LAD] Tutorial for programming with JACK, Emanuel Rumpf, (Thu Mar 8, 8:41 am)
Re: [LAD] Tutorial for programming with JACK, Paul Davis, (Thu Mar 8, 1:19 am)
Re: [LAD] Tutorial for programming with JACK, Harry van Haaren, (Fri Feb 24, 4:52 pm)
Re: [LAD] Tutorial for programming with JACK, Joan Quintana, (Fri Feb 24, 5:46 pm)
Re: [LAD] Tutorial for programming with JACK, Iain Duncan, (Sat Feb 25, 10:34 pm)
Re: [LAD] Tutorial for programming with JACK, Robin Gareus, (Fri Feb 24, 5:06 pm)
Re: [LAD] Tutorial for programming with JACK, Robin Gareus, (Wed Feb 22, 11:30 am)
Re: [LAD] Tutorial for programming with JACK, Patrick Shirkey, (Thu Feb 16, 11:49 pm)
Re: [LAD] Tutorial for programming with JACK, Kris Calabio, (Fri Feb 17, 12:00 am)
Re: [LAD] Tutorial for programming with JACK, Joel Roth, (Sat Feb 18, 11:06 pm)
Re: [LAD] Tutorial for programming with JACK, Patrick Shirkey, (Fri Feb 17, 12:10 am)