Move audio_utils to libretro-common as s16_to_float
This commit is contained in:
parent
a3ca1029f0
commit
65d33700d4
|
@ -369,10 +369,10 @@ ifeq ($(HAVE_NEON),1)
|
||||||
DEFINES += -DSINC_LOWER_QUALITY
|
DEFINES += -DSINC_LOWER_QUALITY
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OBJ += audio/audio_utils.o \
|
OBJ += libretro-common/conversion/s16_to_float.o \
|
||||||
libretro-common/conversion/float_to_s16.o
|
libretro-common/conversion/float_to_s16.o
|
||||||
ifeq ($(HAVE_NEON),1)
|
ifeq ($(HAVE_NEON),1)
|
||||||
OBJ += audio/audio_utils_neon.o \
|
OBJ += libretro-common/conversion/s16_to_float_neon.o \
|
||||||
libretro-common/conversion/float_to_s16_neon.o
|
libretro-common/conversion/float_to_s16_neon.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -205,7 +205,8 @@ else ifeq ($(platform), vita)
|
||||||
-lSceSysmodule_stub -lSceCtrl_stub -lSceAudio_stub -lUVLoader_stub \
|
-lSceSysmodule_stub -lSceCtrl_stub -lSceAudio_stub -lUVLoader_stub \
|
||||||
-lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lfreetype -lz -lm -lc -lpng
|
-lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lfreetype -lz -lm -lc -lpng
|
||||||
|
|
||||||
PLATOBJS += audio/audio_utils_neon.o audio/drivers_resampler/sinc_resampler_neon.o \
|
PLATOBJS += libretro-common/conversion/s16_to_float_neon.o \
|
||||||
|
audio/drivers_resampler/sinc_resampler_neon.o \
|
||||||
audio/drivers_resampler/cc_resampler_neon.o
|
audio/drivers_resampler/cc_resampler_neon.o
|
||||||
|
|
||||||
LIBDIRS += -L.
|
LIBDIRS += -L.
|
||||||
|
|
|
@ -10,7 +10,7 @@ TARGET := retroarch-pandora
|
||||||
LDDIRS = -L. -L$(PNDSDK)/usr/lib
|
LDDIRS = -L. -L$(PNDSDK)/usr/lib
|
||||||
INCDIRS = -I. -I$(PNDSDK)/usr/include
|
INCDIRS = -I. -I$(PNDSDK)/usr/include
|
||||||
|
|
||||||
OBJ = griffin/griffin.o audio/resamplers/sinc_resampler_neon.o audio/audio_utils_neon.o libretro-common/conversion/float_to_s16_neon.o
|
OBJ = griffin/griffin.o audio/resamplers/sinc_resampler_neon.o libretro-common/conversion/s16_to_float_neon.o libretro-common/conversion/float_to_s16_neon.o
|
||||||
LDFLAGS = -L$(PNDSDK)/usr/lib -Wl,-rpath,$(PNDSDK)/usr/lib
|
LDFLAGS = -L$(PNDSDK)/usr/lib -Wl,-rpath,$(PNDSDK)/usr/lib
|
||||||
|
|
||||||
LIBS = -lGLESv2 -lEGL -ldl -lm -lpthread -lrt -lasound
|
LIBS = -lGLESv2 -lEGL -ldl -lm -lpthread -lrt -lasound
|
||||||
|
|
|
@ -20,11 +20,11 @@
|
||||||
|
|
||||||
#include <lists/string_list.h>
|
#include <lists/string_list.h>
|
||||||
#include <conversion/float_to_s16.h>
|
#include <conversion/float_to_s16.h>
|
||||||
|
#include <conversion/s16_to_float.h>
|
||||||
|
|
||||||
#include "audio_driver.h"
|
#include "audio_driver.h"
|
||||||
#include "audio_resampler_driver.h"
|
#include "audio_resampler_driver.h"
|
||||||
#include "../record/record_driver.h"
|
#include "../record/record_driver.h"
|
||||||
#include "audio_utils.h"
|
|
||||||
#include "audio_thread_wrapper.h"
|
#include "audio_thread_wrapper.h"
|
||||||
|
|
||||||
#include "../command.h"
|
#include "../command.h"
|
||||||
|
|
|
@ -1,20 +1,26 @@
|
||||||
/* RetroArch - A frontend for libretro.
|
/* Copyright (C) 2010-2016 The RetroArch team
|
||||||
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
|
||||||
*
|
*
|
||||||
* RetroArch 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 Found-
|
* The following license statement only applies to this file (s16_to_float.h).
|
||||||
* ation, either version 3 of the License, or (at your option) any later version.
|
* ---------------------------------------------------------------------------------------
|
||||||
*
|
*
|
||||||
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
* Permission is hereby granted, free of charge,
|
||||||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
|
||||||
* PURPOSE. See the GNU General Public License for more details.
|
* to deal in the Software without restriction, including without limitation the rights to
|
||||||
|
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
|
||||||
|
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License along with RetroArch.
|
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||||
|
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef __LIBRETRO_SDK_CONVERSION_S16_TO_FLOAT_H__
|
||||||
#ifndef AUDIO_UTILS_H
|
#define __LIBRETRO_SDK_CONVERSION_S16_TO_FLOAT_H__
|
||||||
#define AUDIO_UTILS_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -23,9 +29,9 @@ extern "C" {
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#include <retro_common_api.h>
|
||||||
#include "../config.h"
|
|
||||||
#endif
|
RETRO_BEGIN_DECLS
|
||||||
|
|
||||||
#if defined(__SSE2__)
|
#if defined(__SSE2__)
|
||||||
#define convert_s16_to_float convert_s16_to_float_SSE2
|
#define convert_s16_to_float convert_s16_to_float_SSE2
|
||||||
|
@ -113,8 +119,6 @@ void convert_s16_to_float_C(float *out,
|
||||||
**/
|
**/
|
||||||
void convert_init_simd(void);
|
void convert_init_simd(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
RETRO_END_DECLS
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -24,7 +24,7 @@ ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||||
|
|
||||||
ifeq ($(HAVE_NEON),1)
|
ifeq ($(HAVE_NEON),1)
|
||||||
DEFINES += -D__ARM_NEON__
|
DEFINES += -D__ARM_NEON__
|
||||||
LOCAL_SRC_FILES += $(RARCH_DIR)/audio/audio_utils_neon.S.neon
|
LOCAL_SRC_FILES += $(RARCH_DIR)/libretro-common/conversion/s16_to_float_neon.S.neon
|
||||||
LOCAL_SRC_FILES += $(RARCH_DIR)/libretro-common/conversion/float_to_s16_neon.S.neon
|
LOCAL_SRC_FILES += $(RARCH_DIR)/libretro-common/conversion/float_to_s16_neon.S.neon
|
||||||
LOCAL_SRC_FILES += $(RARCH_DIR)/audio/drivers_resampler/sinc_resampler_neon.S.neon
|
LOCAL_SRC_FILES += $(RARCH_DIR)/audio/drivers_resampler/sinc_resampler_neon.S.neon
|
||||||
LOCAL_SRC_FILES += $(RARCH_DIR)/audio/drivers_resampler/cc_resampler_neon.S.neon
|
LOCAL_SRC_FILES += $(RARCH_DIR)/audio/drivers_resampler/cc_resampler_neon.S.neon
|
||||||
|
|
|
@ -24,7 +24,7 @@ ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||||
|
|
||||||
ifeq ($(HAVE_NEON),1)
|
ifeq ($(HAVE_NEON),1)
|
||||||
DEFINES += -D__ARM_NEON__
|
DEFINES += -D__ARM_NEON__
|
||||||
LOCAL_SRC_FILES += $(RARCH_DIR)/audio/audio_utils_neon.S.neon
|
LOCAL_SRC_FILES += $(RARCH_DIR)/libretro-common/conversion/s16_to_float_neon.S.neon
|
||||||
LOCAL_SRC_FILES += $(RARCH_DIR)/libretro-common/conversion/float_to_s16_neon.S.neon
|
LOCAL_SRC_FILES += $(RARCH_DIR)/libretro-common/conversion/float_to_s16_neon.S.neon
|
||||||
LOCAL_SRC_FILES += $(RARCH_DIR)/audio/drivers_resampler/sinc_resampler_neon.S.neon
|
LOCAL_SRC_FILES += $(RARCH_DIR)/audio/drivers_resampler/sinc_resampler_neon.S.neon
|
||||||
LOCAL_SRC_FILES += $(RARCH_DIR)/audio/drivers_resampler/cc_resampler_neon.S.neon
|
LOCAL_SRC_FILES += $(RARCH_DIR)/audio/drivers_resampler/cc_resampler_neon.S.neon
|
||||||
|
|
|
@ -60,8 +60,7 @@ extern "C" {
|
||||||
#include <gfx/scaler/scaler.h>
|
#include <gfx/scaler/scaler.h>
|
||||||
#include <file/config_file.h>
|
#include <file/config_file.h>
|
||||||
#include <conversion/float_to_s16.h>
|
#include <conversion/float_to_s16.h>
|
||||||
|
#include <conversion/s16_to_float.h>
|
||||||
#include "../../audio/audio_utils.h"
|
|
||||||
|
|
||||||
#include "../../general.h"
|
#include "../../general.h"
|
||||||
#include "../../verbosity.h"
|
#include "../../verbosity.h"
|
||||||
|
|
Loading…
Reference in New Issue