diff options
Diffstat (limited to 'xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/audio_encoder.h')
| -rw-r--r-- | xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/audio_encoder.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/audio_encoder.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/audio_encoder.h new file mode 100644 index 0000000..6f24d1c --- /dev/null +++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/audio_encoder.h | |||
| @@ -0,0 +1,67 @@ | |||
| 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 | #pragma once | ||
| 10 | |||
| 11 | #ifndef C_API_ADDONINSTANCE_AUDIO_ENCODER_H | ||
| 12 | #define C_API_ADDONINSTANCE_AUDIO_ENCODER_H | ||
| 13 | |||
| 14 | #include "../addon_base.h" | ||
| 15 | |||
| 16 | #ifdef __cplusplus | ||
| 17 | extern "C" | ||
| 18 | { | ||
| 19 | #endif /* __cplusplus */ | ||
| 20 | |||
| 21 | typedef struct AddonProps_AudioEncoder | ||
| 22 | { | ||
| 23 | int dummy; | ||
| 24 | } AddonProps_AudioEncoder; | ||
| 25 | |||
| 26 | typedef struct AddonToKodiFuncTable_AudioEncoder | ||
| 27 | { | ||
| 28 | KODI_HANDLE kodiInstance; | ||
| 29 | int (*write)(KODI_HANDLE kodiInstance, const uint8_t* data, int len); | ||
| 30 | int64_t (*seek)(KODI_HANDLE kodiInstance, int64_t pos, int whence); | ||
| 31 | } AddonToKodiFuncTable_AudioEncoder; | ||
| 32 | |||
| 33 | struct AddonInstance_AudioEncoder; | ||
| 34 | typedef struct KodiToAddonFuncTable_AudioEncoder | ||
| 35 | { | ||
| 36 | KODI_HANDLE addonInstance; | ||
| 37 | bool(__cdecl* start)(const struct AddonInstance_AudioEncoder* instance, | ||
| 38 | int in_channels, | ||
| 39 | int in_rate, | ||
| 40 | int in_bits, | ||
| 41 | const char* title, | ||
| 42 | const char* artist, | ||
| 43 | const char* albumartist, | ||
| 44 | const char* album, | ||
| 45 | const char* year, | ||
| 46 | const char* track, | ||
| 47 | const char* genre, | ||
| 48 | const char* comment, | ||
| 49 | int track_length); | ||
| 50 | int(__cdecl* encode)(const struct AddonInstance_AudioEncoder* instance, | ||
| 51 | int num_bytes_read, | ||
| 52 | const uint8_t* pbt_stream); | ||
| 53 | bool(__cdecl* finish)(const struct AddonInstance_AudioEncoder* instance); | ||
| 54 | } KodiToAddonFuncTable_AudioEncoder; | ||
| 55 | |||
| 56 | typedef struct AddonInstance_AudioEncoder | ||
| 57 | { | ||
| 58 | struct AddonProps_AudioEncoder* props; | ||
| 59 | struct AddonToKodiFuncTable_AudioEncoder* toKodi; | ||
| 60 | struct KodiToAddonFuncTable_AudioEncoder* toAddon; | ||
| 61 | } AddonInstance_AudioEncoder; | ||
| 62 | |||
| 63 | #ifdef __cplusplus | ||
| 64 | } /* extern "C" */ | ||
| 65 | #endif /* __cplusplus */ | ||
| 66 | |||
| 67 | #endif /* !C_API_ADDONINSTANCE_AUDIO_ENCODER_H */ | ||
