-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'av_stream/add_resample_support' into 'master'
av_stream: support audio resample See merge request adf/esp-adf-internal!1164
- Loading branch information
Showing
10 changed files
with
304 additions
and
200 deletions.
There are no files selected for viewing
90 changes: 38 additions & 52 deletions
90
examples/protocols/components/audio_flash_tone/audio_tone_uri.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,38 @@ | ||
/* | ||
* ESPRESSIF MIT License | ||
* | ||
* Copyright (c) 2021 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> | ||
* | ||
* Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, | ||
* it is free of charge, to any person obtaining a copy of this software and associated | ||
* documentation files (the "Software"), 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: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all copies or | ||
* substantial portions of the Software. | ||
* | ||
* 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. | ||
* | ||
*/ | ||
|
||
const char* tone_uri[] = { | ||
"flash://tone/0_Bt_Reconnect.mp3", | ||
"flash://tone/1_Wechat.mp3", | ||
"flash://tone/2_Welcome_To_Wifi.mp3", | ||
"flash://tone/3_New_Version_Available.mp3", | ||
"flash://tone/4_Bt_Success.mp3", | ||
"flash://tone/5_Freetalk.mp3", | ||
"flash://tone/6_Upgrade_Done.mp3", | ||
"flash://tone/7_shutdown.mp3", | ||
"flash://tone/8_Alarm.mp3", | ||
"flash://tone/9_Wifi_Success.mp3", | ||
"flash://tone/10_Under_Smartconfig.mp3", | ||
"flash://tone/11_Out_Of_Power.mp3", | ||
"flash://tone/12_server_connect.mp3", | ||
"flash://tone/13_hello.mp3", | ||
"flash://tone/14_new_message.mp3", | ||
"flash://tone/15_Please_Retry_Wifi.mp3", | ||
"flash://tone/16_please_setting_wifi.mp3", | ||
"flash://tone/17_Welcome_To_Bt.mp3", | ||
"flash://tone/18_Wifi_Time_Out.mp3", | ||
"flash://tone/19_Wifi_Reconnect.mp3", | ||
"flash://tone/20_server_disconnect.mp3", | ||
}; | ||
|
||
int get_tone_uri_num() | ||
{ | ||
return sizeof(tone_uri) / sizeof(char *) - 1; | ||
} | ||
/* | ||
* ESPRESSIF MIT License | ||
* | ||
* Copyright (c) 2023 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> | ||
* | ||
* Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, | ||
* it is free of charge, to any person obtaining a copy of this software and associated | ||
* documentation files (the "Software"), 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: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all copies or | ||
* substantial portions of the Software. | ||
* | ||
* 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. | ||
* | ||
*/ | ||
|
||
const char* tone_uri[] = { | ||
"flash://tone/0_Alarm.mp3", | ||
"flash://tone/1_Under_Smartconfig.mp3", | ||
"flash://tone/2_Wifi_Reconnect.mp3", | ||
"flash://tone/3_Wifi_Success.mp3", | ||
"flash://tone/4_please_setting_wifi.mp3", | ||
"flash://tone/5_server_connect.mp3", | ||
"flash://tone/6_server_disconnect.mp3", | ||
}; | ||
|
||
int get_tone_uri_num() | ||
{ | ||
return sizeof(tone_uri) / sizeof(char *) - 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-274 KB
(35%)
examples/protocols/components/audio_flash_tone/bin/audio-esp.bin
Binary file not shown.
Oops, something went wrong.