summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audiodec_dll.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audiodec_dll.h')
-rw-r--r--xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audiodec_dll.h62
1 files changed, 0 insertions, 62 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audiodec_dll.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audiodec_dll.h
deleted file mode 100644
index 5232947..0000000
--- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audiodec_dll.h
+++ /dev/null
@@ -1,62 +0,0 @@
1/*
2 * Copyright (C) 2005-2013 Team XBMC
3 * http://xbmc.org
4 *
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with XBMC; see the file COPYING. If not, see
17 * <http://www.gnu.org/licenses/>.
18 *
19 */
20
21#pragma once
22
23#include <stdint.h>
24#include "xbmc_addon_dll.h"
25#include "kodi_audiodec_types.h"
26
27extern "C"
28{
29 //! \copydoc AudioDecoder::Init
30 void* Init(const char* file, unsigned int filecache, int* channels,
31 int* samplerate, int* bitspersample, int64_t* totaltime,
32 int* bitrate, AEDataFormat* format, const AEChannel** channelinfo);
33
34 //! \copydoc AudioDecoder::ReadPCM
35 int ReadPCM(void* context, uint8_t* buffer, int size, int* actualsize);
36
37 //! \copydoc AudioDecoder::Seek
38 int64_t Seek(void* context, int64_t time);
39
40 //! \copydoc AudioDecoder::ReadTag
41 bool ReadTag(const char* file, char* title,
42 char* artist, int* length);
43
44 //! \copydoc AudioDecoder::TrackCount
45 int TrackCount(const char* file);
46
47 //! \copydoc AudioDecoder::DeInit
48 bool DeInit(void* context);
49
50 // function to export the above structure to XBMC
51 void __declspec(dllexport) get_addon(void* ptr)
52 {
53 AddonInstance_AudioDecoder* pScr = static_cast<AddonInstance_AudioDecoder*>(ptr);
54
55 pScr->toAddon.Init = Init;
56 pScr->toAddon.ReadPCM = ReadPCM;
57 pScr->toAddon.Seek = Seek;
58 pScr->toAddon.ReadTag = ReadTag;
59 pScr->toAddon.TrackCount = TrackCount;
60 pScr->toAddon.DeInit = DeInit;
61 };
62};