aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Hochecker <fernetmenta@online.de>2014-05-01 13:58:35 +0200
committerRainer Hochecker <fernetmenta@online.de>2014-05-08 07:14:18 +0200
commite36e4f0e2a46764d0c4341a5caf50cae6f772504 (patch)
tree1c913f88c0101f02c9336fc05ee4794d33e3acc8
parent619880f5ce65c10b7c40ea872c4fd07b090a7b5d (diff)
remove libsamplerate and related dead code
-rw-r--r--configure.in4
-rw-r--r--project/BuildDependencies/scripts/libsamplerate_d.bat14
-rw-r--r--project/BuildDependencies/scripts/libsamplerate_d.txt3
-rw-r--r--project/VS2010Express/XBMC.vcxproj2
-rw-r--r--project/VS2010Express/XBMC.vcxproj.filters6
-rw-r--r--tools/depends/target/Makefile2
-rw-r--r--tools/depends/target/libsamplerate/Makefile42
-rw-r--r--xbmc/cores/AudioEngine/Makefile.in1
-rw-r--r--xbmc/cores/AudioEngine/Utils/AEWAVLoader.cpp368
-rw-r--r--xbmc/cores/AudioEngine/Utils/AEWAVLoader.h79
-rw-r--r--xbmc/win32/Win32DelayedDllLoad.cpp6
11 files changed, 1 insertions, 526 deletions
diff --git a/configure.in b/configure.in
index 20caba5afe..f016c70423 100644
--- a/configure.in
+++ b/configure.in
@@ -1037,7 +1037,6 @@ AC_CHECK_HEADER([mpeg2dec/mpeg2convert.h],, AC_MSG_ERROR($missing_library),
AC_INCLUDES_DEFAULT()
[#include <mpeg2dec/mpeg2.h>])
AC_CHECK_HEADER([jpeglib.h],, AC_MSG_ERROR($missing_library))
-AC_CHECK_HEADER([samplerate.h],, AC_MSG_ERROR($missing_library))
AC_CHECK_HEADER([ogg/ogg.h],, AC_MSG_ERROR($missing_library))
AC_CHECK_HEADER([vorbis/vorbisfile.h],, AC_MSG_ERROR($missing_library))
AC_CHECK_HEADER([libmodplug/modplug.h],, AC_MSG_ERROR($missing_library))
@@ -1116,9 +1115,6 @@ PKG_CHECK_MODULES([PCRE], [libpcre],
[INCLUDES="$INCLUDES $PCRE_CFLAGS"; LIBS="$LIBS $PCRE_LIBS"]; \
AC_DEFINE([HAVE_LIBPCRE],[1],["Define to 1 if libpcre is installed"]),
AC_MSG_ERROR($missing_library))
-PKG_CHECK_MODULES([SAMPLERATE], [samplerate],
- [INCLUDES="$INCLUDES $SAMPLERATE_CFLAGS"; LIBS="$LIBS $SAMPLERATE_LIBS"],
- AC_MSG_ERROR($missing_library))
PKG_CHECK_MODULES([FREETYPE2], [freetype2],
[INCLUDES="$INCLUDES $FREETYPE2_CFLAGS"; LIBS="$LIBS $FREETYPE2_LIBS"],
AC_MSG_ERROR($missing_library))
diff --git a/project/BuildDependencies/scripts/libsamplerate_d.bat b/project/BuildDependencies/scripts/libsamplerate_d.bat
deleted file mode 100644
index eb40fc8108..0000000000
--- a/project/BuildDependencies/scripts/libsamplerate_d.bat
+++ /dev/null
@@ -1,14 +0,0 @@
-@ECHO OFF
-
-SET LOC_PATH=%CD%
-SET FILES=%LOC_PATH%\libsamplerate_d.txt
-
-CALL dlextract.bat libsamplerate %FILES%
-
-cd %TMP_PATH%
-
-copy include\samplerate.h "%CUR_PATH%\include" /Y
-copy lib\libsamplerate-0.lib "%CUR_PATH%\lib\" /Y
-copy bin\libsamplerate-0.dll "%XBMC_PATH%\system\" /Y
-
-cd %LOC_PATH%
diff --git a/project/BuildDependencies/scripts/libsamplerate_d.txt b/project/BuildDependencies/scripts/libsamplerate_d.txt
deleted file mode 100644
index 6a0e2d32b1..0000000000
--- a/project/BuildDependencies/scripts/libsamplerate_d.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-; filename mirror of the file source of the file
-libsamplerate-vc100-0.1.7-lib.tar.bz2 http://mirrors.xbmc.org/build-deps/win32/ http://winkde.org/pub/kde/ports/win32/releases/stable/4.5.4/libsamplerate-vc100-0.1.7-lib.tar.bz2
-libsamplerate-vc100-0.1.7-bin.tar.bz2 http://mirrors.xbmc.org/build-deps/win32/ http://winkde.org/pub/kde/ports/win32/releases/stable/4.5.4/libsamplerate-vc100-0.1.7-bin.tar.bz2 \ No newline at end of file
diff --git a/project/VS2010Express/XBMC.vcxproj b/project/VS2010Express/XBMC.vcxproj
index 21cdffce5d..2251634a7f 100644
--- a/project/VS2010Express/XBMC.vcxproj
+++ b/project/VS2010Express/XBMC.vcxproj
@@ -319,7 +319,6 @@
<ClCompile Include="..\..\xbmc\cores\AudioEngine\Utils\AERemap.cpp" />
<ClCompile Include="..\..\xbmc\cores\AudioEngine\Utils\AEStreamInfo.cpp" />
<ClCompile Include="..\..\xbmc\cores\AudioEngine\Utils\AEUtil.cpp" />
- <ClCompile Include="..\..\xbmc\cores\AudioEngine\Utils\AEWAVLoader.cpp" />
<ClCompile Include="..\..\xbmc\cores\dvdplayer\DVDCodecs\Audio\DVDAudioCodecPassthrough.cpp" />
<ClCompile Include="..\..\xbmc\cores\dvdplayer\DVDCodecs\Video\CrystalHD.cpp" />
<ClCompile Include="..\..\xbmc\cores\dvdplayer\DVDCodecs\Video\DVDVideoCodec.cpp" />
@@ -997,7 +996,6 @@
<ClInclude Include="..\..\xbmc\cores\AudioEngine\Utils\AERemap.h" />
<ClInclude Include="..\..\xbmc\cores\AudioEngine\Utils\AEStreamInfo.h" />
<ClInclude Include="..\..\xbmc\cores\AudioEngine\Utils\AEUtil.h" />
- <ClInclude Include="..\..\xbmc\cores\AudioEngine\Utils\AEWAVLoader.h" />
<ClInclude Include="..\..\xbmc\cores\dvdplayer\DVDCodecs\Audio\DVDAudioCodecPassthrough.h" />
<ClInclude Include="..\..\xbmc\cores\dvdplayer\DVDDemuxers\DVDDemuxBXA.h" />
<ClInclude Include="..\..\xbmc\cores\dvdplayer\DVDDemuxers\DVDDemuxCDDA.h" />
diff --git a/project/VS2010Express/XBMC.vcxproj.filters b/project/VS2010Express/XBMC.vcxproj.filters
index 994db7f5d9..7574677092 100644
--- a/project/VS2010Express/XBMC.vcxproj.filters
+++ b/project/VS2010Express/XBMC.vcxproj.filters
@@ -2355,9 +2355,6 @@
<ClCompile Include="..\..\xbmc\cores\AudioEngine\Utils\AEUtil.cpp">
<Filter>cores\AudioEngine\Utils</Filter>
</ClCompile>
- <ClCompile Include="..\..\xbmc\cores\AudioEngine\Utils\AEWAVLoader.cpp">
- <Filter>cores\AudioEngine\Utils</Filter>
- </ClCompile>
<ClCompile Include="..\..\xbmc\cores\AudioEngine\Utils\AEDeviceInfo.cpp">
<Filter>cores\AudioEngine\Utils</Filter>
</ClCompile>
@@ -5450,9 +5447,6 @@
<ClInclude Include="..\..\xbmc\cores\AudioEngine\Utils\AEUtil.h">
<Filter>cores\AudioEngine\Utils</Filter>
</ClInclude>
- <ClInclude Include="..\..\xbmc\cores\AudioEngine\Utils\AEWAVLoader.h">
- <Filter>cores\AudioEngine\Utils</Filter>
- </ClInclude>
<ClInclude Include="..\..\xbmc\cores\AudioEngine\Utils\AEDeviceInfo.h">
<Filter>cores\AudioEngine\Utils</Filter>
</ClInclude>
diff --git a/tools/depends/target/Makefile b/tools/depends/target/Makefile
index 8368a24d5d..3e02fc03a5 100644
--- a/tools/depends/target/Makefile
+++ b/tools/depends/target/Makefile
@@ -10,7 +10,7 @@ DEPENDS = \
openssl gmp nettle gnutls libssh2 curl \
libjpeg-turbo tiff jasper libpng \
libogg libvorbis libflac fribidi libmpeg2 \
- libass libsamplerate \
+ libass \
libmodplug librtmp libxml2 yajl libmicrohttpd mysql libffi \
python26 afpfs-ng libshairplay \
libplist libcec libbluray boost tinyxml dummy-libxbmc \
diff --git a/tools/depends/target/libsamplerate/Makefile b/tools/depends/target/libsamplerate/Makefile
deleted file mode 100644
index 2f87beb9e3..0000000000
--- a/tools/depends/target/libsamplerate/Makefile
+++ /dev/null
@@ -1,42 +0,0 @@
-include ../../Makefile.include
-DEPS= ../../Makefile.include Makefile
-
-# lib name, version
-LIBNAME=libsamplerate
-VERSION=0.1.7
-SOURCE=$(LIBNAME)-$(VERSION)
-ARCHIVE=$(SOURCE).tar.gz
-
-# configuration settings
-CONFIGURE=cp -f $(CONFIG_SUB) $(CONFIG_GUESS) .; \
- cp -f $(CONFIG_SUB) $(CONFIG_GUESS) Cfg; \
- ./configure --prefix=$(PREFIX) --disable-sndfile --disable-fftw --disable-shared
-
-LIBDYLIB=$(PLATFORM)/src/.libs/$(LIBNAME).a
-
-CLEAN_FILES=$(ARCHIVE) $(PLATFORM)
-
-all: .installed-$(PLATFORM)
-
-$(TARBALLS_LOCATION)/$(ARCHIVE):
- cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
-
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
- rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
- cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
- cd $(PLATFORM); $(CONFIGURE)
-
-$(LIBDYLIB): $(PLATFORM)
- $(MAKE) -C $(PLATFORM)
-
-.installed-$(PLATFORM): $(LIBDYLIB)
- $(MAKE) -C $(PLATFORM) install
- touch $@
-
-clean:
- $(MAKE) -C $(PLATFORM) clean
- rm -f .installed-$(PLATFORM)
-
-distclean::
- rm -rf $(PLATFORM) .installed-$(PLATFORM)
-
diff --git a/xbmc/cores/AudioEngine/Makefile.in b/xbmc/cores/AudioEngine/Makefile.in
index b49c3cc499..c2196536c0 100644
--- a/xbmc/cores/AudioEngine/Makefile.in
+++ b/xbmc/cores/AudioEngine/Makefile.in
@@ -60,7 +60,6 @@ SRCS += Utils/AEUtil.cpp
SRCS += Utils/AEStreamInfo.cpp
SRCS += Utils/AEPackIEC61937.cpp
SRCS += Utils/AEBitstreamPacker.cpp
-SRCS += Utils/AEWAVLoader.cpp
SRCS += Utils/AEELDParser.cpp
SRCS += Utils/AEDeviceInfo.cpp
SRCS += Utils/AELimiter.cpp
diff --git a/xbmc/cores/AudioEngine/Utils/AEWAVLoader.cpp b/xbmc/cores/AudioEngine/Utils/AEWAVLoader.cpp
deleted file mode 100644
index de9029b44f..0000000000
--- a/xbmc/cores/AudioEngine/Utils/AEWAVLoader.cpp
+++ /dev/null
@@ -1,368 +0,0 @@
-/*
- * Copyright (C) 2010-2013 Team XBMC
- * http://xbmc.org
- *
- * This Program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * This Program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with XBMC; see the file COPYING. If not, see
- * <http://www.gnu.org/licenses/>.
- *
- */
-
-#include "AEWAVLoader.h"
-
-
-#include "system.h"
-#include "utils/log.h"
-#include "utils/EndianSwap.h"
-#include "filesystem/File.h"
-#include "URL.h"
-#include <samplerate.h>
-
-#include "AEConvert.h"
-#include "AEUtil.h"
-#include "AERemap.h"
-
-#ifdef TARGET_WINDOWS
-#pragma comment(lib, "libsamplerate-0.lib")
-#endif
-
-typedef struct
-{
- char chunk_id[4];
- uint32_t chunksize;
-} WAVE_CHUNK;
-
-CAEWAVLoader::CAEWAVLoader() :
- m_valid (false),
- m_sampleRate (0 ),
- m_outputSampleRate (0 ),
- m_frameCount (0 ),
- m_outputFrameCount (0 ),
- m_sampleCount (0 ),
- m_outputSampleCount (0 ),
- m_samples (NULL ),
- m_outputSamples (NULL )
-{
-}
-
-CAEWAVLoader::~CAEWAVLoader()
-{
- UnLoad();
-}
-
-bool CAEWAVLoader::Load(const std::string &filename)
-{
- UnLoad();
-
- m_filename = filename;
-
- XFILE::CFile file;
- if (!file.Open(m_filename))
- {
- CLog::Log(LOGERROR, "CAEWAVLoader::Initialize - Failed to create loader: %s", m_filename.c_str());
- return false;
- }
-
- struct __stat64 st;
- if (file.Stat(&st) < 0)
- {
- CLog::Log(LOGERROR, "CAEWAVLoader::Initialize - Failed to stat file: %s", m_filename.c_str());
- return false;
- }
-
- bool isRIFF = false;
- bool isWAVE = false;
- bool isFMT = false;
- bool isPCM = false;
- bool isDATA = false;
-
- uint32_t sampleRate;
- uint32_t byteRate;
- uint16_t blockAlign;
- uint16_t bitsPerSample;
-
- WAVE_CHUNK chunk;
- while (file.Read(&chunk, sizeof(chunk)) == sizeof(chunk))
- {
- chunk.chunksize = Endian_SwapLE32(chunk.chunksize);
-
- /* if its the RIFF header */
- if (!isRIFF && memcmp(chunk.chunk_id, "RIFF", 4) == 0)
- {
- isRIFF = true;
-
- /* work around invalid chunksize, I have seen this in one file so far (shutter.wav) */
- if (chunk.chunksize == st.st_size)
- chunk.chunksize -= 8;
-
- /* sanity check on the chunksize */
- if (chunk.chunksize > st.st_size - 8)
- {
- CLog::Log(LOGERROR, "CAEWAVLoader::Initialize - Corrupt WAV header: %s", m_filename.c_str());
- file.Close();
- return false;
- }
-
- /* we only support WAVE files */
- char format[4];
- if (file.Read(&format, 4) != 4)
- break;
- isWAVE = memcmp(format, "WAVE", 4) == 0;
- if (!isWAVE)
- break;
- }
- /* if its the fmt section */
- else if (!isFMT && memcmp(chunk.chunk_id, "fmt ", 4) == 0)
- {
- isFMT = true;
- if (chunk.chunksize < 16)
- break;
- uint16_t format;
- if (file.Read(&format, sizeof(format)) != sizeof(format))
- break;
- format = Endian_SwapLE16(format);
- if (format != WAVE_FORMAT_PCM)
- break;
-
- uint16_t channelCount;
- if (file.Read(&channelCount , 2) != 2)
- break;
- if (file.Read(&sampleRate , 4) != 4)
- break;
- if (file.Read(&byteRate , 4) != 4)
- break;
- if (file.Read(&blockAlign , 2) != 2)
- break;
- if (file.Read(&bitsPerSample, 2) != 2)
- break;
-
- channelCount = Endian_SwapLE16(channelCount);
- /* TODO: support > 2 channel count */
- if (channelCount > 2)
- break;
-
- static AEChannel layouts[][3] = {
- {AE_CH_FC, AE_CH_NULL},
- {AE_CH_FL, AE_CH_FR, AE_CH_NULL}
- };
-
- m_channels = layouts[channelCount - 1];
- m_sampleRate = Endian_SwapLE32(sampleRate );
- byteRate = Endian_SwapLE32(byteRate );
- blockAlign = Endian_SwapLE16(blockAlign );
- bitsPerSample = Endian_SwapLE16(bitsPerSample);
- isPCM = true;
-
- if (chunk.chunksize > 16)
- file.Seek(chunk.chunksize - 16, SEEK_CUR);
- }
- /* if we have the PCM info and its the DATA section */
- else if (isPCM && !isDATA && memcmp(chunk.chunk_id, "data", 4) == 0)
- {
- unsigned int bytesPerSample = bitsPerSample >> 3;
- m_sampleCount = chunk.chunksize / bytesPerSample;
- m_frameCount = m_sampleCount / m_channels.Count();
- isDATA = m_frameCount > 0;
-
- /* get the conversion function */
- CAEConvert::AEConvertToFn convertFn;
- switch (bitsPerSample)
- {
- case 8 : convertFn = CAEConvert::ToFloat(AE_FMT_U8 ); break;
- case 16: convertFn = CAEConvert::ToFloat(AE_FMT_S16LE); break;
- case 32: convertFn = CAEConvert::ToFloat(AE_FMT_S32LE); break;
- default:
- CLog::Log(LOGERROR, "CAEWAVLoader::Initialize - Unsupported data format in wav: %s", m_filename.c_str());
- file.Close();
- return false;
- }
-
- /* read in each sample */
- unsigned int size = bytesPerSample * m_sampleCount;
- m_samples = (float* )_aligned_malloc(sizeof(float) * m_sampleCount, 16);
- uint8_t *raw = (uint8_t *)_aligned_malloc(size, 16);
- if (file.Read(raw, size) != size)
- {
- CLog::Log(LOGERROR, "CAEWAVLoader::Initialize - WAV data shorter then expected: %s", m_filename.c_str());
- _aligned_free(m_samples);
- _aligned_free(raw);
- m_samples = NULL;
- file.Close();
- return false;
- }
-
- /* convert the samples to float */
- convertFn(raw, m_sampleCount, m_samples);
- _aligned_free(raw);
- }
- else
- {
- /* skip any unknown sections */
- file.Seek(chunk.chunksize, SEEK_CUR);
- }
- }
-
- if (!isRIFF || !isWAVE || !isFMT || !isPCM || !isDATA || m_sampleCount == 0)
- {
- CLog::Log(LOGERROR, "CAEWAVLoader::Initialize - Invalid, or un-supported WAV file: %s", m_filename.c_str());
- file.Close();
- return false;
- }
-
- /* close the file as we have the samples now */
- file.Close();
-
- m_outputChannels = m_channels;
- m_outputSampleRate = m_sampleRate;
- m_outputSamples = m_samples;
- m_outputSampleCount = m_sampleCount;
- m_outputFrameCount = m_frameCount;
-
- CLog::Log(LOGINFO, "CAEWAVLoader::Initialize - Sound Loaded: %s", m_filename.c_str());
- m_valid = true;
- return true;
-}
-
-bool CAEWAVLoader::Initialize(unsigned int resampleRate, CAEChannelInfo channelLayout, enum AEStdChLayout stdChLayout/* = AE_CH_LAYOUT_INVALID */)
-{
- if (!m_valid)
- {
- CLog::Log(LOGERROR, "CAEWAVLoader::Initialize - File has not been loaded");
- return false;
- }
-
- DeInitialize();
-
- /* if the sample rates do not match */
- if (m_sampleRate != resampleRate)
- {
- unsigned int space = (unsigned int)((((float)m_sampleCount / (float)m_sampleRate) * (float)resampleRate) * 2.0f);
- SRC_DATA data;
- data.data_in = m_samples;
- data.input_frames = m_frameCount;
- data.data_out = (float*)_aligned_malloc(sizeof(float) * space, 16);
- data.output_frames = space / m_channels.Count();
- data.src_ratio = (double)resampleRate / (double)m_sampleRate;
-#ifdef TARGET_DARWIN_IOS
- if (src_simple(&data, SRC_SINC_FASTEST, m_channels.Count()) != 0)
-#else
- if (src_simple(&data, SRC_SINC_MEDIUM_QUALITY, m_channels.Count()) != 0)
-#endif
- {
- CLog::Log(LOGERROR, "CAEWAVLoader::Initialize - Failed to resample audio: %s", m_filename.c_str());
- _aligned_free(data.data_out);
- return false;
- }
-
- if (m_outputSamples != m_samples)
- _aligned_free(m_outputSamples);
-
- m_outputSamples = data.data_out;
- m_outputFrameCount = data.output_frames_gen;
- m_outputSampleCount = data.output_frames_gen * m_channels.Count();
- m_outputSampleRate = resampleRate;
- }
- else
- {
- m_outputSamples = m_samples;
- m_outputFrameCount = m_frameCount;
- m_outputSampleCount = m_sampleCount;
- m_outputSampleRate = m_sampleRate;
- }
-
- /* if the channel layouts do not match */
- if (m_channels != channelLayout)
- {
- CAERemap remap;
- if (!remap.Initialize(m_channels, channelLayout, false, false, stdChLayout))
- return false;
-
- /* adjust the output format parameters */
- m_outputSampleCount = m_outputFrameCount * channelLayout.Count();
- m_outputChannels = channelLayout;
-
- float *remapped = (float*)_aligned_malloc(sizeof(float) * m_outputSampleCount, 16);
- remap.Remap(m_outputSamples, remapped, m_outputFrameCount);
-
- /* assign the remapped buffer */
- if (m_outputSamples != m_samples)
- _aligned_free(m_outputSamples);
- m_outputSamples = remapped;
- }
-
- return true;
-}
-
-void CAEWAVLoader::UnLoad()
-{
- DeInitialize();
-
- _aligned_free(m_samples);
- m_samples = NULL;
- m_sampleCount = 0;
- m_frameCount = 0;
- m_channels.Reset();
-
- m_outputSamples = NULL;
- m_outputSampleCount = 0;
- m_outputFrameCount = 0;
- m_outputChannels.Reset();
-}
-
-void CAEWAVLoader::DeInitialize()
-{
- /* only free m_outputSamples if it is a seperate buffer */
- if (m_outputSamples != m_samples)
- _aligned_free(m_outputSamples);
-
- m_outputSamples = m_samples;
- m_outputSampleCount = m_sampleCount;
- m_outputFrameCount = m_frameCount;
- m_outputChannels = m_channels;
-}
-
-CAEChannelInfo CAEWAVLoader::GetChannelLayout()
-{
- return m_outputChannels;
-}
-
-unsigned int CAEWAVLoader::GetSampleRate()
-{
- return m_outputSampleRate;
-}
-
-unsigned int CAEWAVLoader::GetSampleCount()
-{
- return m_outputSampleCount;
-}
-
-unsigned int CAEWAVLoader::GetFrameCount()
-{
- return m_outputFrameCount;
-}
-
-float* CAEWAVLoader::GetSamples()
-{
- if (!m_valid || m_outputSamples == NULL)
- return NULL;
-
- return m_outputSamples;
-}
-
-bool CAEWAVLoader::IsCompatible(const unsigned int sampleRate, const CAEChannelInfo &channelInfo)
-{
- return (
- m_outputSampleRate == sampleRate &&
- m_outputChannels == channelInfo
- );
-}
diff --git a/xbmc/cores/AudioEngine/Utils/AEWAVLoader.h b/xbmc/cores/AudioEngine/Utils/AEWAVLoader.h
deleted file mode 100644
index e96bbba7ba..0000000000
--- a/xbmc/cores/AudioEngine/Utils/AEWAVLoader.h
+++ /dev/null
@@ -1,79 +0,0 @@
-#pragma once
-/*
- * Copyright (C) 2010-2013 Team XBMC
- * http://xbmc.org
- *
- * This Program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * This Program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with XBMC; see the file COPYING. If not, see
- * <http://www.gnu.org/licenses/>.
- *
- */
-
-#include "utils/StdString.h"
-#include "AEAudioFormat.h"
-
-class CAEWAVLoader
-{
-public:
- CAEWAVLoader();
- ~CAEWAVLoader();
-
- /**
- * Load a WAV file into memory
- * @param filename The filename to load
- * @return true on success
- */
- bool Load(const std::string &filename);
-
- /**
- * Unload and release the samples loaded by CAWEAVLoader::Load
- */
- void UnLoad();
-
- /**
- * Initialize the loaded file for the required output format
- * @param sampleRate The desired output sample rate
- * @param channelLayout The desired output channel layout
- * @param stdChLayout The channels that are actually used in the layout
- */
- bool Initialize(unsigned int resampleRate, CAEChannelInfo channelLayout, enum AEStdChLayout stdChLayout = AE_CH_LAYOUT_INVALID);
-
- /**
- * DeInitialize the remapped/resampled output
- */
- void DeInitialize();
-
- /**
- * Returns if the current sample buffer is valid
- * @return true if the current sample buffer is valid
- */
- bool IsValid() { return m_valid; }
-
- CAEChannelInfo GetChannelLayout();
- unsigned int GetSampleRate();
- unsigned int GetSampleCount();
- unsigned int GetFrameCount();
- float* GetSamples();
- bool IsCompatible(const unsigned int sampleRate, const CAEChannelInfo &channelInfo);
-
-private:
- std::string m_filename;
- bool m_valid;
-
- CAEChannelInfo m_channels , m_outputChannels;
- unsigned int m_sampleRate , m_outputSampleRate;
- unsigned int m_frameCount , m_outputFrameCount;
- unsigned int m_sampleCount , m_outputSampleCount;
- float *m_samples , *m_outputSamples;
-};
-
diff --git a/xbmc/win32/Win32DelayedDllLoad.cpp b/xbmc/win32/Win32DelayedDllLoad.cpp
index def089efd4..61bdbb27eb 100644
--- a/xbmc/win32/Win32DelayedDllLoad.cpp
+++ b/xbmc/win32/Win32DelayedDllLoad.cpp
@@ -48,12 +48,6 @@ FARPROC WINAPI delayHookNotifyFunc (unsigned dliNotify, PDelayLoadInfo pdli)
HMODULE hMod = LoadLibraryEx(strDll.c_str(), 0, LOAD_WITH_ALTERED_SEARCH_PATH);
return (FARPROC)hMod;
}
- if (stricmp(pdli->szDll, "libsamplerate-0.dll") == 0)
- {
- std::string strDll = CSpecialProtocol::TranslatePath("special://xbmcbin/system/libsamplerate-0.dll");
- HMODULE hMod = LoadLibraryEx(strDll.c_str(), 0, LOAD_WITH_ALTERED_SEARCH_PATH);
- return (FARPROC)hMod;
- }
if (stricmp(pdli->szDll, "dnssd.dll") == 0)
{
std::string strDll = CSpecialProtocol::TranslatePath("special://xbmcbin/system/dnssd.dll");