From 99250daf6c6b41c03084314c5323970888ff13e0 Mon Sep 17 00:00:00 2001 From: dimitri Date: Mon, 2 Apr 2018 09:04:42 -0700 Subject: [PATCH] core audio format will likely never be implemented/supported in libnyquist; remove stub files --- include/libnyquist/CafDecoder.h | 45 ------------------ libnyquist.vcxproj/v141/libnyquist.vcxproj | 2 - .../v141/libnyquist.vcxproj.filters | 6 --- src/CafDecoder.cpp | 47 ------------------- 4 files changed, 100 deletions(-) delete mode 100644 include/libnyquist/CafDecoder.h delete mode 100644 src/CafDecoder.cpp diff --git a/include/libnyquist/CafDecoder.h b/include/libnyquist/CafDecoder.h deleted file mode 100644 index e2c0e93..0000000 --- a/include/libnyquist/CafDecoder.h +++ /dev/null @@ -1,45 +0,0 @@ -/* -Copyright (c) 2015, Dimitri Diakopoulos All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -#ifndef CAF_DECODER_H -#define CAF_DECODER_H - -#include "AudioDecoder.h" - -namespace nqr -{ - -struct CAFDecoder : public nqr::BaseDecoder -{ - CAFDecoder() {}; - virtual ~CAFDecoder() {}; - virtual void LoadFromPath(nqr::AudioData * data, const std::string & path) override; - virtual void LoadFromBuffer(nqr::AudioData * data, const std::vector & memory) override; - virtual std::vector GetSupportedFileExtensions() override; -}; - -} // end namespace nqr - -#endif \ No newline at end of file diff --git a/libnyquist.vcxproj/v141/libnyquist.vcxproj b/libnyquist.vcxproj/v141/libnyquist.vcxproj index e1b30e8..9de6b6a 100644 --- a/libnyquist.vcxproj/v141/libnyquist.vcxproj +++ b/libnyquist.vcxproj/v141/libnyquist.vcxproj @@ -25,7 +25,6 @@ - @@ -47,7 +46,6 @@ - diff --git a/libnyquist.vcxproj/v141/libnyquist.vcxproj.filters b/libnyquist.vcxproj/v141/libnyquist.vcxproj.filters index 50dac55..c58377b 100644 --- a/libnyquist.vcxproj/v141/libnyquist.vcxproj.filters +++ b/libnyquist.vcxproj/v141/libnyquist.vcxproj.filters @@ -10,9 +10,6 @@ src - - src - src @@ -63,9 +60,6 @@ include - - include - include diff --git a/src/CafDecoder.cpp b/src/CafDecoder.cpp deleted file mode 100644 index 86ae698..0000000 --- a/src/CafDecoder.cpp +++ /dev/null @@ -1,47 +0,0 @@ -/* -Copyright (c) 2015, Dimitri Diakopoulos All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -#include "CafDecoder.h" - -using namespace nqr; - -////////////////////// -// Public Interface // -////////////////////// - -void CAFDecoder::LoadFromPath(AudioData * data, const std::string & path) -{ - throw LoadPathNotImplEx(); -} - -void CAFDecoder::LoadFromBuffer(AudioData * data, const std::vector & memory) -{ - throw LoadBufferNotImplEx(); -} - -std::vector CAFDecoder::GetSupportedFileExtensions() -{ - return {}; -} \ No newline at end of file