diff options
| author | manuel <manuel@mausz.at> | 2017-07-23 16:59:43 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2017-07-23 16:59:43 +0200 |
| commit | 4c3251ec645c8b71820dab7e51e612e5919d4e75 (patch) | |
| tree | 9533268a93e58fc2e16de1b8ee3fafe3784e5225 /xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_dll.h | |
| parent | f44ecaa4f27e7538ddcad66d40e543bffa2d2d86 (diff) | |
| download | kodi-pvr-build-4c3251ec645c8b71820dab7e51e612e5919d4e75.tar.gz kodi-pvr-build-4c3251ec645c8b71820dab7e51e612e5919d4e75.tar.bz2 kodi-pvr-build-4c3251ec645c8b71820dab7e51e612e5919d4e75.zip | |
sync with upstream
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_dll.h')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_dll.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_dll.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_dll.h deleted file mode 100644 index 9ba259c..0000000 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_dll.h +++ /dev/null | |||
| @@ -1,60 +0,0 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | /* | ||
| 4 | * Copyright (C) 2005-2015 Team Kodi | ||
| 5 | * http://kodi.tv | ||
| 6 | * | ||
| 7 | * This Program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 10 | * any later version. | ||
| 11 | * | ||
| 12 | * This Program is distributed in the hope that it will be useful, | ||
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | * GNU General Public License for more details. | ||
| 16 | * | ||
| 17 | * You should have received a copy of the GNU General Public License | ||
| 18 | * along with Kodi; see the file COPYING. If not, see | ||
| 19 | * <http://www.gnu.org/licenses/>. | ||
| 20 | * | ||
| 21 | */ | ||
| 22 | |||
| 23 | #include <stdint.h> | ||
| 24 | #include "xbmc_addon_dll.h" | ||
| 25 | #include "xbmc_audioenc_types.h" | ||
| 26 | |||
| 27 | extern "C" | ||
| 28 | { | ||
| 29 | //! \copydoc AudioEncoder::Create | ||
| 30 | void* Create(audioenc_callbacks *callbacks); | ||
| 31 | |||
| 32 | //! \copydoc AudioEncoder::Start | ||
| 33 | bool Start(void* context, int iInChannels, int iInRate, int iInBits, | ||
| 34 | const char* title, const char* artist, | ||
| 35 | const char* albumartist, const char* album, | ||
| 36 | const char* year, const char* track, | ||
| 37 | const char* genre, const char* comment, int iTrackLength); | ||
| 38 | |||
| 39 | //! \copydoc AudioEncoder::Encode | ||
| 40 | int Encode(void* context, int nNumBytesRead, uint8_t* pbtStream); | ||
| 41 | |||
| 42 | //! \copydoc AudioEncoder::Finish | ||
| 43 | bool Finish(void* context); | ||
| 44 | |||
| 45 | //! \copydoc AudioEncoder::Free | ||
| 46 | void Free(void* context); | ||
| 47 | |||
| 48 | // function to export the above structure to XBMC | ||
| 49 | void __declspec(dllexport) get_addon(void* enc) | ||
| 50 | { | ||
| 51 | AddonInstance_AudioEncoder* pScr = static_cast<AddonInstance_AudioEncoder*>(enc); | ||
| 52 | |||
| 53 | pScr->toAddon.Create = Create; | ||
| 54 | pScr->toAddon.Start = Start; | ||
| 55 | pScr->toAddon.Encode = Encode; | ||
| 56 | pScr->toAddon.Finish = Finish; | ||
| 57 | pScr->toAddon.Free = Free; | ||
| 58 | }; | ||
| 59 | }; | ||
| 60 | |||
