JackUtils 0.5
Provides simplified Jack API for clients :)
Loading...
Searching...
No Matches
Functions
ju_port.h File Reference

JackUtils Ports API. More...

Go to the source code of this file.

Functions

JU_API int ju_port_open (ju_ctx_t *x, ju_cstr_t n, enum ju_port_type t, int f)
 Creates new port, and returns port desriptor. More...
 
JU_API void ju_port_close (ju_ctx_t *x, int p)
 Decreases reference counter of port, and destroys it, if refcounter == 0. More...
 
JU_API void ju_port_take (ju_ctx_t *x, int p)
 Increases reference counter of port. More...
 
JU_API int ju_port_connected (ju_ctx_t *x, int p)
 Returns number of connections to the port (or simply is port connected to anything) More...
 
JU_API int ju_port_mine (ju_ctx_t *x, int p)
 Returns is port owned by context. More...
 
JU_API int ju_port_next (ju_ctx_t *x, int p, enum ju_port_type t)
 Returns next valid port descriptor, owned by JackUtils context. More...
 
JU_API int ju_port_find (ju_ctx_t *x, ju_cstr_t n)
 Finds port by full name. More...
 
JU_PROC const ju_sample_t *() ju_port_read (ju_ctx_t *x, int p)
 Gets audio buffer from the port. More...
 
JU_PROC size_t() ju_port_write (ju_ctx_t *x, int p, const ju_sample_t *a, size_t l)
 Writes data to port with Output type from sample array. More...
 
JU_PROC void() ju_port_write_stream (ju_ctx_t *x, int p, ju_stream_func_t s, void *u)
 Writes data to port with Output type from stream callback. More...
 
JU_API int ju_port_rawfind (ju_ctx_t *x, jack_port_t *p, int not_own)
 Finds existed port handle, or takes new port handle from jack_port_t. More...
 
JU_API jack_port_t * ju_port_rawget (ju_ctx_t *x, int p)
 Returns jack_port_t, associated with handle. More...
 

Detailed Description

JackUtils Ports API.