JackUtils 0.5
Provides simplified Jack API for clients :)
Loading...
Searching...
No Matches
jackutils.h
Go to the documentation of this file.
1/* JackUtils Library - provides more simplificated JACK API for clients
2 * Copyright (C) UtoECat 2022. All rights Reserved!
3
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
25#include <assert.h>
26#include <ju_defs.h>
27#include <jack/jack.h>
28
29#define JU_API
30#define JU_PROC
31
46#define JU_MAX_PORTS 127
57 JU_OUTPUT = 2
58};
59
60typedef unsigned char ju_uint8_t;
64typedef const char* ju_cstr_t;
68typedef jack_default_audio_sample_t ju_sample_t;
72typedef struct ju_ctx_s ju_ctx_t;
76#include <ju_buffer.h>
77
92typedef void (*ju_process_func_t) (ju_ctx_t* x, size_t s);
93
109typedef size_t (ju_stream_func_t)(void* p, ju_sample_t* x, size_t s);
110
111#include <ju_context.h>
112#include <ju_port.h>
113#include <ju_osc.h>
114#include <ju_vars.h>
const char * ju_cstr_t
Informative type definition.
Definition: jackutils.h:64
jack_default_audio_sample_t ju_sample_t
Sample type.
Definition: jackutils.h:68
size_t() ju_stream_func_t(void *p, ju_sample_t *x, size_t s)
Stream callback function for ju_port_write_stream() function.
Definition: jackutils.h:109
ju_port_type
Enum of all available port types.
Definition: jackutils.h:55
unsigned char ju_uint8_t
Unsigned int definition...
Definition: jackutils.h:60
void(* ju_process_func_t)(ju_ctx_t *x, size_t s)
Jack Audio processing callback.
Definition: jackutils.h:92
@ JU_INPUT
Input port type.
Definition: jackutils.h:56
@ JU_OUTPUT
Output port type.
Definition: jackutils.h:57
Functions for fixed-size threadsafe FIFO buffer.
Contains functions for context creation and manipulation.
Main header file with general definitions for the JackUtils API.
New Session managger support.
JackUtils Ports API.
Defines variables manipulation functions : render, save, load from file, etc.
Internal JackUtils context structure.
Definition: ju_bits_ctx.h:39