esp32 lyratd msc v2.2开发板运行get-started\play_mp3_control例子播放不正常

m_fengye
Posts: 2
Joined: Mon Oct 03, 2022 1:42 pm

esp32 lyratd msc v2.2开发板运行get-started\play_mp3_control例子播放不正常

Postby m_fengye » Mon Oct 10, 2022 1:37 pm

esp32 lyratd msc v2.2开发板在运行get-started\play_mp3_control时只有8000hz的音频是正常的,22050hz和44100hz的音频会有不同的杂音,输出日志没有任何错误信息

ESP_William
Posts: 135
Joined: Tue Apr 24, 2018 5:54 am

Re: esp32 lyratd msc v2.2开发板运行get-started\play_mp3_control例子播放不正常

Postby ESP_William » Thu Nov 10, 2022 11:38 am

最新的 ADF 并没有这个问题,您可以尝试着更新一下或者发下您的 commit

m_fengye
Posts: 2
Joined: Mon Oct 03, 2022 1:42 pm

Re: esp32 lyratd msc v2.2开发板运行get-started\play_mp3_control例子播放不正常

Postby m_fengye » Fri Nov 25, 2022 4:26 pm

已经重新拉取了最新的esp-adf仓库,idf使用的是v4.4.3,依然存在这个问题。
播放声音见附件。
日志如下:
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6660
load:0x40078000,len:14848
ho 0 tail 12 room 4
load:0x40080400,len:3792
0x40080400: _init at ??:?

entry 0x40080694
I (28) boot: ESP-IDF v4.4.3 2nd stage bootloader
I (29) boot: compile time 23:20:21
I (29) boot: chip revision: 1
I (31) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (38) boot.esp32: SPI Speed : 40MHz
I (43) boot.esp32: SPI Mode : DIO
I (48) boot.esp32: SPI Flash Size : 2MB
I (52) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (61) boot: ## Label Usage Type ST Offset Length
I (68) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (76) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (83) boot: 2 factory factory app 00 00 00010000 00100000
I (91) boot: End of partition table
I (95) boot_comm: chip revision: 1, min. application chip revision: 0
I (102) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=a5234h (676404) map
I (355) esp_image: segment 1: paddr=000b525c vaddr=3ffb0000 size=024a8h ( 9384) load
I (359) esp_image: segment 2: paddr=000b770c vaddr=40080000 size=0890ch ( 35084) load
I (376) esp_image: segment 3: paddr=000c0020 vaddr=400d0020 size=2a84ch (174156) map
I (439) esp_image: segment 4: paddr=000ea874 vaddr=4008890c size=0587ch ( 22652) load
I (449) esp_image: segment 5: paddr=000f00f8 vaddr=50000000 size=00010h ( 16) load
I (456) boot: Loaded app from partition at offset 0x10000
I (456) boot: Disabling RNG early entropy source...
I (470) cpu_start: Pro cpu up.
I (470) cpu_start: Starting app cpu, entry point is 0x40081240
0x40081240: call_start_cpu1 at /home/fengye/esp/esp-idf/components/esp_system/port/cpu_start.c:148

I (0) cpu_start: App cpu up.
I (484) cpu_start: Pro cpu start user code
I (484) cpu_start: cpu freq: 160000000
I (484) cpu_start: Application information:
I (489) cpu_start: Project name: play_mp3_control
I (494) cpu_start: App version: 1
I (499) cpu_start: Compile time: Nov 25 2022 23:20:12
I (505) cpu_start: ELF file SHA256: 5cbbc0b2d573057b...
I (511) cpu_start: ESP-IDF: v4.4.3
I (516) heap_init: Initializing. RAM available for dynamic allocation:
I (523) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (529) heap_init: At 3FFB2F30 len 0002D0D0 (180 KiB): DRAM
I (535) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (542) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (548) heap_init: At 4008E188 len 00011E78 (71 KiB): IRAM
I (556) spi_flash: detected chip: generic
I (559) spi_flash: flash io: dio
W (563) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (577) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (587) PLAY_FLASH_MP3_CONTROL: [ 1 ] Start audio codec chip
W (1597) SPI: MCS ret:0,Status:1
I (1597) PLAY_FLASH_MP3_CONTROL: [ 2 ] Create audio pipeline, add all elements to pipeline, and subscribe pipeline event
I (1597) PLAY_FLASH_MP3_CONTROL: [2.1] Create mp3 decoder to decode mp3 file and set custom read callback
I (1607) PLAY_FLASH_MP3_CONTROL: [2.2] Create i2s stream to write data to codec chip
I (1617) PLAY_FLASH_MP3_CONTROL: [2.3] Register all elements to audio pipeline
I (1627) PLAY_FLASH_MP3_CONTROL: [2.4] Link it together [mp3_music_read_cb]-->mp3_decoder-->i2s_stream-->[codec_chip]
I (1637) PLAY_FLASH_MP3_CONTROL: [ 3 ] Initialize peripherals
I (1647) PLAY_FLASH_MP3_CONTROL: [3.1] Initialize keys on board
I (1647) PLAY_FLASH_MP3_CONTROL: [ 4 ] Set up event listener
I (1657) PLAY_FLASH_MP3_CONTROL: [4.1] Listening event from all elements of pipeline
I (1667) PLAY_FLASH_MP3_CONTROL: [4.2] Listening event from peripherals
W (1667) PLAY_FLASH_MP3_CONTROL: [ 5 ] Tap touch buttons to control music player:
W (1677) PLAY_FLASH_MP3_CONTROL: [Play] to start, pause and resume, [Set] to stop.
W (1687) PLAY_FLASH_MP3_CONTROL: [Vol-] or [Vol+] to adjust volume.
I (1697) PLAY_FLASH_MP3_CONTROL: [ 5.1 ] Start audio_pipeline
I (1717) PLAY_FLASH_MP3_CONTROL: [ * ] Receive music info from mp3 decoder, sample_rates=8000, bits=16, ch=2
I (8367) PLAY_FLASH_MP3_CONTROL: [ * ] [mode] tap event
W (8367) AUDIO_ELEMENT: OUT-[mp3] AEL_IO_ABORT
W (8367) MP3_DECODER: output aborted -3
I (8537) PLAY_FLASH_MP3_CONTROL: [ * ] Receive music info from mp3 decoder, sample_rates=22050, bits=16, ch=2
I (29707) PLAY_FLASH_MP3_CONTROL: [ * ] [mode] tap event
E (29707) AUDIO_ELEMENT: [mp3] Element already stopped
E (29707) AUDIO_ELEMENT: [i2s] Element already stopped
I (29727) PLAY_FLASH_MP3_CONTROL: [ * ] Receive music info from mp3 decoder, sample_rates=44100, bits=16, ch=2
I (84187) PLAY_FLASH_MP3_CONTROL: [ * ] [mode] tap event
E (84187) AUDIO_ELEMENT: [mp3] Element already stopped
E (84187) AUDIO_ELEMENT: [i2s] Element already stopped
I (84197) PLAY_FLASH_MP3_CONTROL: [ * ] Receive music info from mp3 decoder, sample_rates=8000, bits=16, ch=2
I (89327) PLAY_FLASH_MP3_CONTROL: [ * ] [mode] tap event
W (89327) AUDIO_ELEMENT: OUT-[mp3] AEL_IO_ABORT
W (89327) MP3_DECODER: output aborted -3
I (89487) PLAY_FLASH_MP3_CONTROL: [ * ] Receive music info from mp3 decoder, sample_rates=22050, bits=16, ch=2
11月26日 上午12点17分.zip
8000hz 22050hz以及44100hz三个播放的声音
(1.83 MiB) Downloaded 342 times

Who is online

Users browsing this forum: No registered users and 82 guests