pinebuds/services/bt_app/Makefile

282 lines
7.1 KiB
Makefile
Raw Permalink Normal View History

2022-08-15 04:20:27 -05:00
cur_dir := $(dir $(lastword $(MAKEFILE_LIST)))
obj_s := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.s))
obj_c := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.c))
obj_cpp := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.cpp))
ifeq ($(VOICE_DATAPATH_TYPE),gsound)
obj_cpp += $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)/app_voice/app_$(VOICE_DATAPATH_TYPE)/*.cpp))
endif
obj_snd := $(patsubst $(cur_dir)%,%,$(wildcard ../../config/_default_cfg_src_/res/$(AUDIO)/*))
Squashed commit of the following: commit d21b9279462a63f292c8a6ef7d72f60bf83ea6df Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Sun Jan 29 11:12:31 2023 -0500 Switched from WAVs to MP3s commit 8a407aa29a6b636d8afe407089a80fc5a3f6e1b2 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Fri Jan 27 07:35:00 2023 -0500 Re-added -j flag commit 654b56be791ba7e9ab7407a084601a0b4f8f9619 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 23 20:40:08 2023 -0500 Cleaned up build.mk commit 112175c3fe8168860908c5fcd1b2b8fea0493231 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 23 20:36:18 2023 -0500 Changed used variable names to match generated variable names commit 0dfe30e5b66185671eb85930c8a7f63b1880f0c7 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Sun Jan 22 20:10:25 2023 -0500 Zeroth cut at a better sound build system that makes better use of the .o/.cpp build system commit f8131f371535e636b02b6aaef853154efff837aa Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 23:42:14 2023 -0500 Removed parallel make - this is the only way I found to get wav->txt to run before the .txt files are included elsewhere commit 934a42c0abd31e59bbebd6193a1db25e773d01ae Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 23:41:56 2023 -0500 Deleted some reference code commit 9d6a4c6638b6f74bd27f87af35451ad06de4cea8 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 23:39:02 2023 -0500 Fixed include error and absolute paths of generated .txt files commit ffc5d7178d8f4bbf4e76c91623c1aba85d83c1e7 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 23:38:29 2023 -0500 Added txt to the windows-only branch commit 1fea961998365c1483e23644cef60793cfe10e45 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 22:09:43 2023 -0500 Renamed wav objects for consistency commit e8d47b082a425074f0f16a29d0e54726aac1fa68 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 18:26:18 2023 -0500 Changed out.raw to out.sbc and commented out the usage of the sbcinfo command commit 2a0ff6569dd81f74f9f30714de8309013b4f8d9a Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 20:37:29 2023 -0500 Added hash to out.raw so that `make -j` doesn't fail commit 80b2c18d5d848c216a76398ab615dace029506fd Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 18:13:41 2023 -0500 Deleted .txt sounds and fixed Make system to make them! commit 319732a808d72dc70e03ebf8ce993ffdf7a01327 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 17:34:04 2023 -0500 Standardized out.raw name commit e48edd26d6a103e8b51c804416a3281122cde974 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 17:28:14 2023 -0500 Added .wav files to tracking commit 6a8c25eef4bf2ac477316629b37322188ba75762 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 17:26:33 2023 -0500 Force ffmpeg overwrite commit 03b50a544d579dadc573fb75e138ee0561d733f2 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 08:45:41 2023 -0500 Removed extraneous slashes commit b4670dc68a274d572005d093e471e4a1c982ed16 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 08:44:41 2023 -0500 Added explicit verbosity commit 2c8cdeea6ecbfbffc7cc4dc4ccb1bd4ac50c7f8a Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 08:11:02 2023 -0500 Annotate xxd command args commit 51d97b1033afcb561b89586fd7d8ffd78a35d43a Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 08:04:04 2023 -0500 Added -aq audio quality flag to keep file sizes the same commit 1e2b28a42fa6752d181b69fa655a165195d8e8d6 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 08:03:48 2023 -0500 Fixed -ar audio rate flag commit 4b19a367acc4fc6ee47777bbf5560de2fbbf86e7 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 9 21:50:40 2023 -0500 Annotated ffmpeg args commit 363ad5ceffc7580843728cff2ae87450233a473c Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 9 21:12:21 2023 -0500 Modified Makefile (system) to auto-build wav files from txt files NOTE: this is kind of the opposite of what we want, so the next step will be to reverse to order and build txt files from wave files each time instead commit 462a57a3ca2e328f3208c75468f68af4c946d42c Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 9 20:46:43 2023 -0500 Added missing quotes commit 965a4b96d274b1e0b1aeb3fec400a55743765d25 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 9 20:43:01 2023 -0500 Updated convert.sh help message commit ef84de0b949e76e37b81db15da57f924777c30dd Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 9 20:42:41 2023 -0500 Added output name to convert.sh
2023-01-29 10:16:07 -06:00
obj-y := $(obj_snd:=.snd.o) $(obj_snd:=.snd.cpp) $(obj_c:.c=.o) $(obj_s:.S=.o) $(obj_cpp:.cpp=.o)
2022-08-15 04:20:27 -05:00
obj-y += a2dp_codecs/
ifeq ($(A2DP_AAC_ON),1)
AAC_INCLUDES = \
-Iservices/multimedia/audio/codec/fdkaac_codec/libAACdec/include \
-Iservices/multimedia/audio/codec/fdkaac_codec/libAACenc/include \
-Iservices/multimedia/audio/codec/fdkaac_codec/libFDK/include \
-Iservices/multimedia/audio/codec/fdkaac_codec/libMpegTPDec/include \
-Iservices/multimedia/audio/codec/fdkaac_codec/libMpegTPEnc/include \
-Iservices/multimedia/audio/codec/fdkaac_codec/libPCMutils/include \
-Iservices/multimedia/audio/codec/fdkaac_codec/libSBRdec/include \
-Iservices/multimedia/audio/codec/fdkaac_codec/libSBRenc/include \
-Iservices/multimedia/audio/codec/fdkaac_codec/libSYS/include
else
AAC_INCLUDES =
endif
ccflags-y += \
$(AAC_INCLUDES) \
-Iservices/osif \
-Iservices/audio_process \
-Iservices/audio_dump/include \
-Iservices/hw_dsp/inc \
-Iservices/fs/fat \
-Iservices/fs/sd \
-Iservices/fs/fat/ChaN \
$(BT_IF_INCLUDES) \
$(BT_PROFILES_INCLUDES) \
-Iservices/multimedia/speech/inc \
-Iservices/bone_sensor/lis25ba \
-Iservices/overlay \
-Ithirdparty/tile/tile_common/tile_storage \
-Iservices/nvrecord \
-Iservices/resources \
-Iservices/multimedia/rbcodec \
-Iservices/multimedia/audio/process/resample/include \
-Iservices/multimedia/audio/process/filters/include \
-Iservices/multimedia/audio/process/drc/include \
-Iservices/multimedia/audio/process/anc/include\
-Iservices/nv_section/aud_section \
-Iservices/nv_section/userdata_section \
-Iservices/nv_section/include \
-Iservices/voicepath/$(VOICE_DATAPATH_TYPE) \
-Iservices/voicepath/gsound/gsound_target \
-Iservices/voicepath/gsound/gsound_custom/inc \
-Iservices/voicepath/gsound/gsound_target_api_read_only \
-Iplatform/drivers/uarthci \
-Iplatform/drivers/ana \
-Iplatform/cmsis \
-Iplatform/drivers/bt \
-Iutils/cqueue \
-Iutils/heap \
-Iservices/audioflinger \
-Iutils/lockcqueue \
-Iutils/intersyshci \
-Iapps/anc/inc \
-Iapps/key \
-Iapps/main \
2022-08-15 20:30:33 -05:00
-Iapps/mic_alg \
2022-08-15 04:20:27 -05:00
-Iapps/common \
-Iapps/audioplayers \
-Iapps/audioplayers/a2dp_decoder \
-Iapps/battery \
-Iapps/common \
-Iapps/factory \
-Iservices/app_ibrt/inc \
-Iservices/ble_app \
-Iutils/hwtimer_list \
-Iservices/ibrt_core/inc \
-Iservices/ibrt_ui/inc \
-Iservices/ble_stack/ble_ip \
-Iservices/ble_stack/hl/api \
-Iservices/ble_stack/app/api/ \
-Iservices/ble_stack/common/api/ \
-Iservices/ble_stack/hl/inc/ \
-Iservices/ble_stack/ke/api \
-Iservices/voicepath \
-Ithirdparty/userapi \
-Iservices/ble_app/app_gfps \
-Iservices/ble_app/app_main \
-Ithirdparty/audio_codec_lib/liblhdc-dec/inc \
-Iservices/ai_voice/manager \
-Iservices/ai_voice/audio \
-Iservices/ai_voice/transport \
-Iservices/app_ai/inc \
-Iservices/interconnection/red \
-Iservices/interconnection/green \
-Iservices/interconnection/umm_malloc \
-Iservices/bt_app \
-Iservices/multimedia/audio/codec/sbc/inc \
-Iservices/multimedia/audio/codec/sbc/src/inc \
-Iservices/multimedia/audio/process/adj_mc/inc \
-Iservices/bt_app/a2dp_codecs/include \
-Ithirdparty/tile/tile_target \
-Iservices/osif \
Squashed commit of the following: commit d21b9279462a63f292c8a6ef7d72f60bf83ea6df Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Sun Jan 29 11:12:31 2023 -0500 Switched from WAVs to MP3s commit 8a407aa29a6b636d8afe407089a80fc5a3f6e1b2 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Fri Jan 27 07:35:00 2023 -0500 Re-added -j flag commit 654b56be791ba7e9ab7407a084601a0b4f8f9619 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 23 20:40:08 2023 -0500 Cleaned up build.mk commit 112175c3fe8168860908c5fcd1b2b8fea0493231 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 23 20:36:18 2023 -0500 Changed used variable names to match generated variable names commit 0dfe30e5b66185671eb85930c8a7f63b1880f0c7 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Sun Jan 22 20:10:25 2023 -0500 Zeroth cut at a better sound build system that makes better use of the .o/.cpp build system commit f8131f371535e636b02b6aaef853154efff837aa Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 23:42:14 2023 -0500 Removed parallel make - this is the only way I found to get wav->txt to run before the .txt files are included elsewhere commit 934a42c0abd31e59bbebd6193a1db25e773d01ae Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 23:41:56 2023 -0500 Deleted some reference code commit 9d6a4c6638b6f74bd27f87af35451ad06de4cea8 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 23:39:02 2023 -0500 Fixed include error and absolute paths of generated .txt files commit ffc5d7178d8f4bbf4e76c91623c1aba85d83c1e7 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 23:38:29 2023 -0500 Added txt to the windows-only branch commit 1fea961998365c1483e23644cef60793cfe10e45 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 22:09:43 2023 -0500 Renamed wav objects for consistency commit e8d47b082a425074f0f16a29d0e54726aac1fa68 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 18:26:18 2023 -0500 Changed out.raw to out.sbc and commented out the usage of the sbcinfo command commit 2a0ff6569dd81f74f9f30714de8309013b4f8d9a Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 20:37:29 2023 -0500 Added hash to out.raw so that `make -j` doesn't fail commit 80b2c18d5d848c216a76398ab615dace029506fd Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 18:13:41 2023 -0500 Deleted .txt sounds and fixed Make system to make them! commit 319732a808d72dc70e03ebf8ce993ffdf7a01327 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 17:34:04 2023 -0500 Standardized out.raw name commit e48edd26d6a103e8b51c804416a3281122cde974 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 17:28:14 2023 -0500 Added .wav files to tracking commit 6a8c25eef4bf2ac477316629b37322188ba75762 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 17:26:33 2023 -0500 Force ffmpeg overwrite commit 03b50a544d579dadc573fb75e138ee0561d733f2 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 08:45:41 2023 -0500 Removed extraneous slashes commit b4670dc68a274d572005d093e471e4a1c982ed16 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 08:44:41 2023 -0500 Added explicit verbosity commit 2c8cdeea6ecbfbffc7cc4dc4ccb1bd4ac50c7f8a Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 08:11:02 2023 -0500 Annotate xxd command args commit 51d97b1033afcb561b89586fd7d8ffd78a35d43a Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 08:04:04 2023 -0500 Added -aq audio quality flag to keep file sizes the same commit 1e2b28a42fa6752d181b69fa655a165195d8e8d6 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 08:03:48 2023 -0500 Fixed -ar audio rate flag commit 4b19a367acc4fc6ee47777bbf5560de2fbbf86e7 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 9 21:50:40 2023 -0500 Annotated ffmpeg args commit 363ad5ceffc7580843728cff2ae87450233a473c Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 9 21:12:21 2023 -0500 Modified Makefile (system) to auto-build wav files from txt files NOTE: this is kind of the opposite of what we want, so the next step will be to reverse to order and build txt files from wave files each time instead commit 462a57a3ca2e328f3208c75468f68af4c946d42c Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 9 20:46:43 2023 -0500 Added missing quotes commit 965a4b96d274b1e0b1aeb3fec400a55743765d25 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 9 20:43:01 2023 -0500 Updated convert.sh help message commit ef84de0b949e76e37b81db15da57f924777c30dd Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 9 20:42:41 2023 -0500 Added output name to convert.sh
2023-01-29 10:16:07 -06:00
-Iservices/app_tws/inc \
-Iout/$(T)/config/_default_cfg_src_
2022-08-15 04:20:27 -05:00
ifeq ($(GATT_OVER_BR_EDR),1)
ccflags-y += -Iservices/ble_stack/hl/src/l2c/l2cm
endif
ifeq ($(ANC_NOISE_TRACKER),1)
ccflags-y += \
-Ithirdparty/noise_tracker_lib \
-Ithirdparty/userapi/noise_tracker_app
endif
ifeq ($(BTUSB_AUDIO_MODE),1)
ccflags-y += -Iapps/btusbaudio
endif
ifeq ($(BT_USB_AUDIO_DUAL_MODE),1)
ccflags-y += -Iapps/btusbaudio
ccflags-y += $(BT_PROFILES_INCLUDES)
endif
ifeq ($(INTERCONNECTION),1)
ccflags-y += $(BT_PROFILES_INCLUDES)
endif
ifeq ($(INTERACTION),1)
ccflags-y += $(BT_PROFILES_INCLUDES)
endif
CFLAGS_app_bt_stream.o += -DAUDIO_OUTPUT_VOLUME_DEFAULT=$(AUDIO_OUTPUT_VOLUME_DEFAULT)
ifeq ($(A2DP_LDAC_ON),1)
Squashed commit of the following: commit d21b9279462a63f292c8a6ef7d72f60bf83ea6df Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Sun Jan 29 11:12:31 2023 -0500 Switched from WAVs to MP3s commit 8a407aa29a6b636d8afe407089a80fc5a3f6e1b2 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Fri Jan 27 07:35:00 2023 -0500 Re-added -j flag commit 654b56be791ba7e9ab7407a084601a0b4f8f9619 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 23 20:40:08 2023 -0500 Cleaned up build.mk commit 112175c3fe8168860908c5fcd1b2b8fea0493231 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 23 20:36:18 2023 -0500 Changed used variable names to match generated variable names commit 0dfe30e5b66185671eb85930c8a7f63b1880f0c7 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Sun Jan 22 20:10:25 2023 -0500 Zeroth cut at a better sound build system that makes better use of the .o/.cpp build system commit f8131f371535e636b02b6aaef853154efff837aa Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 23:42:14 2023 -0500 Removed parallel make - this is the only way I found to get wav->txt to run before the .txt files are included elsewhere commit 934a42c0abd31e59bbebd6193a1db25e773d01ae Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 23:41:56 2023 -0500 Deleted some reference code commit 9d6a4c6638b6f74bd27f87af35451ad06de4cea8 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 23:39:02 2023 -0500 Fixed include error and absolute paths of generated .txt files commit ffc5d7178d8f4bbf4e76c91623c1aba85d83c1e7 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 23:38:29 2023 -0500 Added txt to the windows-only branch commit 1fea961998365c1483e23644cef60793cfe10e45 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 22:09:43 2023 -0500 Renamed wav objects for consistency commit e8d47b082a425074f0f16a29d0e54726aac1fa68 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Thu Jan 12 18:26:18 2023 -0500 Changed out.raw to out.sbc and commented out the usage of the sbcinfo command commit 2a0ff6569dd81f74f9f30714de8309013b4f8d9a Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 20:37:29 2023 -0500 Added hash to out.raw so that `make -j` doesn't fail commit 80b2c18d5d848c216a76398ab615dace029506fd Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 18:13:41 2023 -0500 Deleted .txt sounds and fixed Make system to make them! commit 319732a808d72dc70e03ebf8ce993ffdf7a01327 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 17:34:04 2023 -0500 Standardized out.raw name commit e48edd26d6a103e8b51c804416a3281122cde974 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 17:28:14 2023 -0500 Added .wav files to tracking commit 6a8c25eef4bf2ac477316629b37322188ba75762 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 17:26:33 2023 -0500 Force ffmpeg overwrite commit 03b50a544d579dadc573fb75e138ee0561d733f2 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 08:45:41 2023 -0500 Removed extraneous slashes commit b4670dc68a274d572005d093e471e4a1c982ed16 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 08:44:41 2023 -0500 Added explicit verbosity commit 2c8cdeea6ecbfbffc7cc4dc4ccb1bd4ac50c7f8a Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 08:11:02 2023 -0500 Annotate xxd command args commit 51d97b1033afcb561b89586fd7d8ffd78a35d43a Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 08:04:04 2023 -0500 Added -aq audio quality flag to keep file sizes the same commit 1e2b28a42fa6752d181b69fa655a165195d8e8d6 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Tue Jan 10 08:03:48 2023 -0500 Fixed -ar audio rate flag commit 4b19a367acc4fc6ee47777bbf5560de2fbbf86e7 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 9 21:50:40 2023 -0500 Annotated ffmpeg args commit 363ad5ceffc7580843728cff2ae87450233a473c Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 9 21:12:21 2023 -0500 Modified Makefile (system) to auto-build wav files from txt files NOTE: this is kind of the opposite of what we want, so the next step will be to reverse to order and build txt files from wave files each time instead commit 462a57a3ca2e328f3208c75468f68af4c946d42c Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 9 20:46:43 2023 -0500 Added missing quotes commit 965a4b96d274b1e0b1aeb3fec400a55743765d25 Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 9 20:43:01 2023 -0500 Updated convert.sh help message commit ef84de0b949e76e37b81db15da57f924777c30dd Author: Thatcher Chamberlin <j.thatcher.c@gmail.com> Date: Mon Jan 9 20:42:41 2023 -0500 Added output name to convert.sh
2023-01-29 10:16:07 -06:00
ccflags-y += -Ithirdparty/audio_codec_lib/ldac/inc
2022-08-15 04:20:27 -05:00
endif
ifeq ($(RB_CODEC),1)
ccflags-y += -DRB_CODEC
endif
ifeq ($(TEST_OVER_THE_AIR),1)
ccflags-y += -Iservices/tota
endif
ifeq ($(IBRT),1)
ccflags-y += -Iservices/ibrt/inc
endif
ifeq ($(AUDIO_QUEUE_SUPPORT),1)
CFLAGS_app_bt_media_manager.o += -D__AUDIO_QUEUE_SUPPORT__
endif
CFLAGS_besmain.o += -DBUILD_HOSTNAME=$(BUILD_HOSTNAME) -DBUILD_USERNAME=$(BUILD_USERNAME)
ifeq ($(SPEECH_TX_AEC),1)
CFLAGS_app_bt_stream.o += -DSPEECH_TX_AEC
CFLAGS_app_hfp.o += -DSPEECH_TX_AEC
endif
ifeq ($(SPEECH_TX_NS),1)
CFLAGS_app_bt_stream.o += -DSPEECH_TX_NS
CFLAGS_app_hfp.o += -DSPEECH_TX_NS
endif
ifeq ($(AUDIO_INPUT_MONO),1)
CFLAGS_app_bt_stream.o += -D__AUDIO_INPUT_MONO_MODE__
endif
ifeq ($(AUDIO_OUTPUT_MONO),1)
CFLAGS_app_bt_stream.o += -D__AUDIO_OUTPUT_MONO_MODE__
endif
ifeq ($(AUDIO_OUTPUT_SW_GAIN),1)
CFLAGS_app_bt_stream.o += -DAUDIO_OUTPUT_SW_GAIN
endif
ifeq ($(AUDIO_RESAMPLE),1)
CFLAGS_app_bt_stream.o += -D__AUDIO_RESAMPLE__
endif
ifeq ($(SW_PLAYBACK_RESAMPLE),1)
CFLAGS_app_bt_stream.o += -DSW_PLAYBACK_RESAMPLE
endif
ifeq ($(SW_CAPTURE_RESAMPLE),1)
CFLAGS_app_bt_stream.o += -DSW_CAPTURE_RESAMPLE
endif
ifeq ($(SW_SCO_RESAMPLE),1)
CFLAGS_app_bt_stream.o += -DSW_SCO_RESAMPLE
endif
ifeq ($(NO_SCO_RESAMPLE),1)
CFLAGS_app_bt_stream.o += -DNO_SCO_RESAMPLE
endif
ifeq ($(RESAMPLE_ANY_SAMPLE_RATE),1)
CFLAGS_app_bt_stream.o += -DRESAMPLE_ANY_SAMPLE_RATE
endif
ifeq ($(BT_XTAL_SYNC),1)
CFLAGS_app_bt_stream.o += -DBT_XTAL_SYNC
endif
ifeq ($(AUDIO_SPECTRUM),1)
CFLAGS_app_bt_stream.o += -D__AUDIO_SPECTRUM__
endif
ifeq ($(HW_FIR_EQ_PROCESS),1)
CFLAGS_app_bt_stream.o += -D__HW_FIR_EQ_PROCESS__
endif
ifeq ($(HW_IIR_EQ_PROCESS),1)
CFLAGS_app_bt_stream.o += -D__HW_IIR_EQ_PROCESS__
endif
ifeq ($(SW_IIR_EQ_PROCESS),1)
CFLAGS_app_bt_stream.o += -D__SW_IIR_EQ_PROCESS__
endif
ifeq ($(HW_DAC_IIR_EQ_PROCESS),1)
CFLAGS_app_bt_stream.o += -D__HW_DAC_IIR_EQ_PROCESS__
endif
ifeq ($(ANC_APP),1)
CFLAGS_app_bt_stream.o += -DANC_APP
CFLAGS_app_media_player.o += -DANC_APP
endif
ifeq ($(ANC_WNR_ENABLED),1)
CFLAGS_app_bt_stream.o += -DANC_WNR_ENABLED
endif
MUSIC_DELAY_CONTROL ?= 1
ifeq ($(MUSIC_DELAY_CONTROL),1)
CFLAGS_app_bt_stream.o += -DMUSIC_DELAY_CONTROL
endif
ifeq ($(A2DP_EQ_24BIT),1)
CFLAGS_app_bt_stream.o += -DA2DP_EQ_24BIT
CFLAGS_app_ring_merge.o += -DA2DP_EQ_24BIT
endif
ifeq ($(APP_MUSIC_26M),1)
CFLAGS_app_bt_stream.o += -DAPP_MUSIC_26M
endif
ifeq ($(AUDIO_DRC),1)
ccflags-y += -D__AUDIO_DRC__
endif
ifeq ($(AUDIO_DRC2),1)
ccflags-y += -D__AUDIO_DRC2__
endif
ifeq ($(SPEECH_TX_AEC_CODEC_REF),1)
CFLAGS_app_bt_stream.o += -DSPEECH_TX_AEC_CODEC_REF
endif
ifeq ($(SPEECH_RX_24BIT),1)
CFLAGS_app_bt_stream.o += -DSPEECH_RX_24BIT
endif
ifeq ($(ANC_NOISE_TRACKER),1)
CFLAGS_app_bt_stream.o += -DANC_NOISE_TRACKER
endif
ifeq ($(SNIFF_MODE_CHECK),1)
CFLAGS_app_a2dp.o += -D__SNIFF_MODE_CHECK__
endif
ifeq ($(MEDIA_PLAY_24BIT),1)
CFLAGS_app_media_player.o += -DMEDIA_PLAY_24BIT
endif