Am 8. März 2012 01:08 schrieb <kallipygos@inbox.lv>:
>
> It is possible with (curses-ansi escapes) TUI vary sine parameters -
> Frequency and amplitude.
>
Possible with restrictions:
You cannot call blocking functions in jacks process() function.
Thus non-blocking inter-thread communication may be necessary.
>
> Is it possible this program __as_is__ rewrite for jack output ?
>
Jack Audio uses a _callback_ based api.
What you have there is not.
You could re-use the above code with simple adjustments
by adding an additional bridging library.
(Eventually causing loss of realtime capabilities.)
Look at :
bio2jack -- http://bio2jack.sourceforge.net/
jackasyn -- http://packages.debian.org/search?suite=default§ion=all&arch=any&searchon=sourcenames&keywords=jackasyn
(I couldn't find its original home)
>
> Anyway - What is best (thread?, IPC?) program, structure, realtime-safe,
> for such simple jack-TUI program ?
>
Look at jack example code, for how to make a real jack app.
>
> Normal 16 bit sound samples must be in range
>
Jackd uses 32 bit float.
Everything below -1.0 and above +1.0 is likely to become cut anywhere.
Re-sampling 16-bit to float is possible with additional libraries.
-- E.R. _______________________________________________ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-devReceived on Thu Mar 8 12:15:02 2012
This archive was generated by hypermail 2.1.8 : Thu Mar 08 2012 - 12:15:02 EET