Kodi Development 19.0
for Binary and Script based Add-Ons
audio_encoder.h
1/*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9#ifndef C_API_ADDONINSTANCE_AUDIO_ENCODER_H
10#define C_API_ADDONINSTANCE_AUDIO_ENCODER_H
11
12#include "../addon_base.h"
13
14#ifdef __cplusplus
15extern "C"
16{
17#endif /* __cplusplus */
18
20 {
21 int dummy;
23
25 {
26 KODI_HANDLE kodiInstance;
27 int (*write)(KODI_HANDLE kodiInstance, const uint8_t* data, int len);
28 int64_t (*seek)(KODI_HANDLE kodiInstance, int64_t pos, int whence);
30
33 {
34 KODI_HANDLE addonInstance;
35 bool(__cdecl* start)(const struct AddonInstance_AudioEncoder* instance,
36 int in_channels,
37 int in_rate,
38 int in_bits,
39 const char* title,
40 const char* artist,
41 const char* albumartist,
42 const char* album,
43 const char* year,
44 const char* track,
45 const char* genre,
46 const char* comment,
47 int track_length);
48 int(__cdecl* encode)(const struct AddonInstance_AudioEncoder* instance,
49 int num_bytes_read,
50 const uint8_t* pbt_stream);
51 bool(__cdecl* finish)(const struct AddonInstance_AudioEncoder* instance);
53
55 {
56 struct AddonProps_AudioEncoder* props;
60
61#ifdef __cplusplus
62} /* extern "C" */
63#endif /* __cplusplus */
64
65#endif /* !C_API_ADDONINSTANCE_AUDIO_ENCODER_H */
Definition: audio_encoder.h:55
Definition: audio_encoder.h:20
Definition: audio_encoder.h:25
Definition: audio_encoder.h:33