JackUtils 0.5
Provides simplified Jack API for clients :)
Loading...
Searching...
No Matches
ju_context.h
Go to the documentation of this file.
1// JackUtils Context API
2// Copyright (C) UtoECat 2022
3// GNU GPL License. No Warrianty!
4
5#pragma once
6
26JU_API ju_ctx_t* (ju_ctx_init) (ju_cstr_t n, ju_cstr_t pn, int has_gui);
27
32JU_API void (ju_ctx_uninit) (ju_ctx_t* x);
33
38JU_API ju_cstr_t (ju_get_name) (ju_ctx_t* x);
39
44JU_API ju_cstr_t (ju_jack_info) (void);
45
61JU_API int (ju_start) (ju_ctx_t* x, ju_process_func_t c);
62
69JU_API void (ju_stop) (ju_ctx_t* x);
70
76JU_PROC size_t (ju_length) (ju_ctx_t* x);
77
83JU_API jack_nframes_t (ju_samplerate) (ju_ctx_t* x);
84
102JU_API int (ju_is_online) (ju_ctx_t* x, int t);
103
const char * ju_cstr_t
Informative type definition.
Definition: jackutils.h:64
void(* ju_process_func_t)(ju_ctx_t *x, size_t s)
Jack Audio processing callback.
Definition: jackutils.h:92
JU_API int() ju_start(ju_ctx_t *x, ju_process_func_t c)
Starts JACK Audio Processing.
Definition: jackutilsctx.c:138
JU_API ju_cstr_t() ju_jack_info(void)
Returns information about JACK library.
Definition: jackutilsctx.c:135
JU_API void() ju_ctx_uninit(ju_ctx_t *x)
Destroy context and release resources.
Definition: jackutilsctx.c:107
JU_API ju_cstr_t() ju_get_name(ju_ctx_t *x)
Returns real JACK client name.
Definition: jackutilsctx.c:132
JU_API void() ju_stop(ju_ctx_t *x)
Stops client processing.
Definition: jackutilsctx.c:149
JU_API jack_nframes_t() ju_samplerate(ju_ctx_t *x)
Returns global JACK samplerate.
Definition: jackutilsctx.c:183
JU_PROC size_t() ju_length(ju_ctx_t *x)
This function may be called only after starting Jack Audio Processing!
Definition: jackutilsctx.c:176
JU_API int() ju_is_online(ju_ctx_t *x, int t)
Checks is server online, and are we started Jack Audio Processing ju_start().
Definition: jackutilsctx.c:161
JU_API ju_ctx_t *() ju_ctx_init(ju_cstr_t n, ju_cstr_t pn, int has_gui)
Allocates and Initializes jackutils context structure.
Definition: jackutilsctx.c:65
Internal JackUtils context structure.
Definition: ju_bits_ctx.h:39