 |
Kodi Development
19.0
for Binary and Script based Add-Ons
|
|
11 #ifndef C_API_AUDIO_ENGINE_H
12 #define C_API_AUDIO_ENGINE_H
256 typedef void AEStreamHandle;
270 AEStreamHandle* (*make_stream)(
void* kodiBase,
272 unsigned int options);
273 void (*free_stream)(
void* kodiBase, AEStreamHandle* stream);
277 unsigned int (*aestream_get_space)(
void* kodiBase, AEStreamHandle* handle);
278 unsigned int (*aestream_add_data)(
void* kodiBase,
279 AEStreamHandle* handle,
280 uint8_t*
const* data,
285 double centerMixLevel);
286 double (*aestream_get_delay)(
void* kodiBase, AEStreamHandle* handle);
287 bool (*aestream_is_buffering)(
void* kodiBase, AEStreamHandle* handle);
288 double (*aestream_get_cache_time)(
void* kodiBase, AEStreamHandle* handle);
289 double (*aestream_get_cache_total)(
void* kodiBase, AEStreamHandle* handle);
290 void (*aestream_pause)(
void* kodiBase, AEStreamHandle* handle);
291 void (*aestream_resume)(
void* kodiBase, AEStreamHandle* handle);
292 void (*aestream_drain)(
void* kodiBase, AEStreamHandle* handle,
bool wait);
293 bool (*aestream_is_draining)(
void* kodiBase, AEStreamHandle* handle);
294 bool (*aestream_is_drained)(
void* kodiBase, AEStreamHandle* handle);
295 void (*aestream_flush)(
void* kodiBase, AEStreamHandle* handle);
296 float (*aestream_get_volume)(
void* kodiBase, AEStreamHandle* handle);
297 void (*aestream_set_volume)(
void* kodiBase, AEStreamHandle* handle,
float volume);
298 float (*aestream_get_amplification)(
void* kodiBase, AEStreamHandle* handle);
299 void (*aestream_set_amplification)(
void* kodiBase, AEStreamHandle* handle,
float amplify);
300 unsigned int (*aestream_get_frame_size)(
void* kodiBase, AEStreamHandle* handle);
301 unsigned int (*aestream_get_channel_count)(
void* kodiBase, AEStreamHandle* handle);
302 unsigned int (*aestream_get_sample_rate)(
void* kodiBase, AEStreamHandle* handle);
304 double (*aestream_get_resample_ratio)(
void* kodiBase, AEStreamHandle* handle);
305 void (*aestream_set_resample_ratio)(
void* kodiBase, AEStreamHandle* handle,
double ratio);
@ AUDIOENGINE_CH_TBR
Top back right.
Definition: audio_engine.h:110
@ AUDIO_STREAM_PAUSED
create the stream paused
Definition: audio_engine.h:48
@ AUDIOENGINE_CH_BROC
Back right over center.
Definition: audio_engine.h:116
Internal API structure which are used for data exchange between Kodi and addon.
Definition: audio_engine.h:232
@ AUDIOENGINE_CH_TBC
Top back center.
Definition: audio_engine.h:112
@ AUDIOENGINE_CH_NULL
Used inside to indicate the end of a list and not for addon use directly.
Definition: audio_engine.h:74
@ AUDIOENGINE_CH_BC
Back center.
Definition: audio_engine.h:94
enum AudioEngineDataFormat m_dataFormat
Definition: audio_engine.h:234
@ AUDIOENGINE_CH_FL
Front left.
Definition: audio_engine.h:78
@ AUDIOENGINE_CH_FR
Front right.
Definition: audio_engine.h:80
@ AUDIOENGINE_CH_BL
Back left.
Definition: audio_engine.h:86
@ AUDIOENGINE_CH_FROC
Front right over center.
Definition: audio_engine.h:92
@ AUDIO_STREAM_AUTOSTART
autostart the stream when enough data is buffered
Definition: audio_engine.h:50
AudioEngineChannel
Definition: audio_engine.h:72
enum AudioEngineChannel m_channels[AUDIOENGINE_CH_MAX]
Definition: audio_engine.h:246
unsigned int m_encodedRate
Definition: audio_engine.h:240
@ AUDIOENGINE_CH_TC
Top center.
Definition: audio_engine.h:106
@ AUDIOENGINE_CH_BR
Back right.
Definition: audio_engine.h:88
AudioEngineStreamOptions
Definition: audio_engine.h:44
@ AUDIOENGINE_CH_MAX
Maximum possible value, to use e.g. as size inside list.
Definition: audio_engine.h:118
@ AUDIOENGINE_CH_FLOC
Front left over center.
Definition: audio_engine.h:90
@ AUDIOENGINE_CH_BLOC
Back left over center.
Definition: audio_engine.h:114
@ AUDIOENGINE_CH_TFR
Top front right.
Definition: audio_engine.h:102
@ AUDIOENGINE_CH_LFE
LFE / Subwoofer.
Definition: audio_engine.h:84
@ AUDIO_STREAM_FORCE_RESAMPLE
force resample even if rates match
Definition: audio_engine.h:46
@ AUDIOENGINE_CH_TFC
Top front center.
Definition: audio_engine.h:104
@ AUDIOENGINE_CH_FC
Front center.
Definition: audio_engine.h:82
unsigned int m_frames
Definition: audio_engine.h:249
@ AUDIOENGINE_CH_TBL
Top back left.
Definition: audio_engine.h:108
unsigned int m_channelCount
Definition: audio_engine.h:243
@ AUDIOENGINE_CH_SL
Side left.
Definition: audio_engine.h:96
@ AUDIOENGINE_CH_TFL
Top front left.
Definition: audio_engine.h:100
unsigned int m_sampleRate
Definition: audio_engine.h:237
Definition: audio_engine.h:269
@ AUDIOENGINE_CH_RAW
RAW Audio format.
Definition: audio_engine.h:76
unsigned int m_frameSize
Definition: audio_engine.h:252
@ AUDIOENGINE_CH_SR
Side right.
Definition: audio_engine.h:98