用蓝牙spp接收mp3文件存到flash中播放

Maple_Leaf
Posts: 19
Joined: Mon Aug 24, 2020 8:38 am

用蓝牙spp接收mp3文件存到flash中播放

Postby Maple_Leaf » Wed Sep 02, 2020 10:01 am

我用蓝牙spp接收mp3文件存到flash中播放,将接收到的数据存到"/spiflash/test.mp3"文件里,播放音乐我选的是pipeline_sdcard_mp3这个案例,将audio_element_set_uri的uri替换成"/spiflash/test.mp3",但是不能播放,我的/spiflash/test.mp3文件读出的16进制数据,没有问题,请问这个要怎么解决呢?希望哪个高手能指导一下,谢谢!
9(A0RIJPF]XYN56VAP2U@YS.png
9(A0RIJPF]XYN56VAP2U@YS.png (135.33 KiB) Viewed 6989 times

Maple_Leaf
Posts: 19
Joined: Mon Aug 24, 2020 8:38 am

Re: 用蓝牙spp接收mp3文件存到flash中播放

Postby Maple_Leaf » Thu Sep 03, 2020 8:02 am

我现在将文件的路径修改成了"/sdcard/test.mp3",存取数据没有问题,我还将数据打印了一遍,但是fat流提示
FATFS_STREAM: No more data,ret:0
有谁知道这是什么原因吗?求高手指导一下。谢谢!
fd9d6c377d14088a84e6ae9cde83729.png
fd9d6c377d14088a84e6ae9cde83729.png (76.66 KiB) Viewed 6967 times

Maple_Leaf
Posts: 19
Joined: Mon Aug 24, 2020 8:38 am

Re: 用蓝牙spp接收mp3文件存到flash中播放

Postby Maple_Leaf » Thu Sep 03, 2020 8:37 am

刚才没插耳机,现在插上听了一下,有声音了,FATFS_STREAM: No more data,ret:0这个提示应该不影响 :lol:

Who is online

Users browsing this forum: No registered users and 65 guests