Select Git revision
ProjectController.cs
-
Marcel Nellesen authoredMarcel Nellesen authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ITAJACKInterface.h 4.30 KiB
/*
* ----------------------------------------------------------------
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-2024
*
* ----------------------------------------------------------------
* ____ __________ _______
* // / //__ ___/ // _ |
* // / // / // /_| |
* // / // / // ___ |
* //__/ //__/ //__/ |__|
*
* ----------------------------------------------------------------
*
*/
// $Id: ITAJACKInterface.h $
#pragma once
#include <functional>
#include <jack/jack.h>
#include <queue>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
// Forward declaration of ITADatasource
class ITADatasource;
// Forward declarations of callbacks
int ITAJackXRUN( void *arg );
void ITAJackMsg( const char *msg );
void ITAJackShutdown( void *arg );
void ITAJackPortConnected( jack_port_id_t a, jack_port_id_t b, int connect, void *arg );
void ITAJackPortRegistered( jack_port_id_t port_id, int reg, void *arg );
/*! ITAJACKInterface
*
*
*
* see also \ITADatasources
*
*/
class ITAJACKInterface
{
public:
//! ITAPortaudio error code table
enum ITA_JACK_ERRORCODE
{
//! Portaudio/ITAPortaudio no error
ITA_JACK_NO_ERROR = 0,
ITA_JACK_ERROR = 1,
ITA_JACK_IS_OPEN,
ITA_JACK_IS_STARTED,
ITA_JACK_OPEN_FAILED,
ITA_JACK_NOT_INITIALIZED,
ITA_JACK_UNMATCHED_CHANNELS,
ITA_JACK_NO_PLAYBACK_DATASOURCE,
ITA_JACK_NO_RECORD_DATASOURCE,
ITA_JACK_IS_NOT_OPEN,
ITA_JACK_INTERNAL_ERROR,
ITA_JACK_STREAM_IS_STOPPED,
ITA_JACK_UNMATCHED_BUFFER_SIZE,
ITA_JACK_UNMATCHED_SAMPLE_RATE
};