播放SD卡音乐问题

smart123
Posts: 37
Joined: Mon Apr 27, 2020 12:01 pm

播放SD卡音乐问题

Postby smart123 » Thu Jun 11, 2020 3:19 am

ADF版本 v2.0 IDF版本 v4.1
请问播放sd卡mp3 音乐的时候出现如下log是为什么?

Code: Select all

I (368) SDCARD_MP3_CONTROL_EXAMPLE: [1.0] Initialize peripherals management
I (378) SDCARD_MP3_CONTROL_EXAMPLE: [1.1] Initialize and start peripherals
I (888) SDCARD_MP3_CONTROL_EXAMPLE: [1.2] Set up a sdcard playlist and scan sdcard music save to it
E (888) PLAYLIST_SDCARD: open file error, line: 112, have you mounted sdcard, set the long file name and UTF-8 encoding configuration ?
 sdcard_list_create 
 sdcard_scan 
E (908) PLAYLIST_SDCARD: /home/smart/esp/esp-adf/components/playlist/playlist_operator/sdcard_list.c:197 (sdcard_list_show): Got NULL Pointer
 sdcard_list_show 
I (918) SDCARD_MP3_CONTROL_EXAMPLE: [ 2 ] Start codec chip
W (948) I2C_BUS: i2c_bus_create:56: I2C bus has been already created, [port:0]
I (958) SDCARD_MP3_CONTROL_EXAMPLE: [ 3 ] Create and start input key service
I (958) SDCARD_MP3_CONTROL_EXAMPLE: [4.0] Create audio pipeline for playback
I (958) SDCARD_MP3_CONTROL_EXAMPLE: [4.1] Create i2s stream to write data to codec chip
I (1038) SDCARD_MP3_CONTROL_EXAMPLE: [4.2] Create mp3 decoder to decode mp3 file
I (1038) SDCARD_MP3_CONTROL_EXAMPLE: [4.3] Create resample filter
I (1038) SDCARD_MP3_CONTROL_EXAMPLE: [4.4] Create fatfs stream to read data from sdcard
E (1058) PLAYLIST_SDCARD: /home/smart/esp/esp-adf/components/playlist/playlist_operator/sdcard_list.c:281 (sdcard_list_current): Got NULL Pointer
/sdcard/music_test.mp3 
I (1068) SDCARD_MP3_CONTROL_EXAMPLE: [4.5] Register all elements to audio pipeline
sd卡文件加是这样的

Code: Select all

/sdcard/__playlist 下有音乐 
		test1.mp3
		test2.mp3
		test3.mp3	
		test4.mp3	
/sdcard/__playlist/_playlist_url	空
/sdcard/__playlist/_offset	        空

mnjhuy86
Posts: 26
Joined: Fri Jun 05, 2020 8:10 am

Re: 播放SD卡音乐问题

Postby mnjhuy86 » Thu Jun 11, 2020 3:35 am

我也发现这个问题,一直找不到原因。现在买了一个esp32_Lyrat板运行这个例程,不会出来这个问题,但不会播放音乐,按play后,出现 [0;31mE (5527) FATFS_STREAM: Error, uri is not set[0m ,esp32复位了,

mnjhuy86
Posts: 26
Joined: Fri Jun 05, 2020 8:10 am

Re: 播放SD卡音乐问题

Postby mnjhuy86 » Thu Jun 11, 2020 12:37 pm

TIM图片20200611203537.png
TIM图片20200611203537.png (27.82 KiB) Viewed 6951 times
make menuconfig ,把选项改成这样就可以通过的。感谢宇空痕的指导

smart123
Posts: 37
Joined: Mon Apr 27, 2020 12:01 pm

Re: 播放SD卡音乐问题

Postby smart123 » Fri Jun 12, 2020 12:21 pm

mnjhuy86 wrote:
Thu Jun 11, 2020 12:37 pm
TIM图片20200611203537.png
make menuconfig ,把选项改成这样就可以通过的。感谢宇空痕的指导
非常感谢!!!
我也试试 这个办法.

Who is online

Users browsing this forum: No registered users and 26 guests