26#ifndef __AMBI_ROOMSIM_INTERNAL_H_INCLUDED__
27#define __AMBI_ROOMSIM_INTERNAL_H_INCLUDED__
41#if !defined(AMBI_ROOMSIM_FRAME_SIZE)
42# if defined(FRAME_SIZE)
43# define AMBI_ROOMSIM_FRAME_SIZE ( FRAME_SIZE )
45# define AMBI_ROOMSIM_FRAME_SIZE ( 128 )
57typedef struct _ambi_roomsim
#define MAX_NUM_INPUTS
Maximum number of input channels supported.
NORM_TYPES
Available Ambisonic normalisation conventions.
CH_ORDER
Available Ambisonic channel ordering conventions.
#define MAX_NUM_SH_SIGNALS
Maximum number of spherical harmonic components/signals supported.
A simple shoebox room Ambisonic encoder.
#define ROOM_SIM_MAX_NUM_RECEIVERS
Maximum supported number of receivers for the room sim example.
#define ROOM_SIM_MAX_NUM_SOURCES
Maximum supported number of sources for the room sim example.
#define AMBI_ROOMSIM_FRAME_SIZE
Framesize, in time-domain samples.
Main include header for the Spatial_Audio_Framework (SAF)
Include header for SAF externals.
Main structure for ambi_roomsim.
int enableReflections
0: disabled, 1: enabled
int new_nSources
New number of sources (current value will be replaced by this after next re-init)
int new_sh_order
New receiver SH order (current value will be replaced by this after next re-init)
CH_ORDER chOrdering
Ambisonic channel order convention (see CH_ORDER)
void * hIms
Image source implementation handle.
int nSources
Current number of sources.
float fs
Host sampling rate, in Hz.
int nReceivers
Current number of receivers.
int sh_order
Current SH order of receivers.
int reinit_room
Flag, 1: re-init required, 0: not required.
int new_nReceivers
New number of receivers (current value will be replaced by this after next re-init)
float ** src_sigs
Source signal buffers; ROOM_SIM_MAX_NUM_SOURCES x AMBI_ROOMSIM_FRAME_SIZE.
NORM_TYPES norm
Ambisonic normalisation convention (see NORM_TYPES)
float *** rec_sh_outsigs
Receiver signal buffers; ROOM_SIM_MAX_NUM_RECEIVERS x MAX_NUM_SH_SIGNALS x AMBI_ROOMSIM_FRAME_SIZE.
int refl_order
Current maximum image source reflection order.