Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: MP3 player
Reply to topic
Author Message
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Jan 21, 2016 11:13 PM    Post subject: MP3 player

Jarek,

I have set up a design that plays back MP3 files using a soundfilereader and the PCMaudio player. I do have the request output connected back into the Soundreader.

I have noticed on two music files that the playback is slowed and the pitch a little lower. The mp3 loops back to the beginning when it is only partially completed.

Any suggestions. One of the MP3s is about 7.5 megs and has a playtime of 4.5 minutes. Is loops after about 45 seconds.



Thanks

Georeg
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Jan 21, 2016 11:20 PM    Post subject:

I am not sure what happens, but it doesn't look right.

If you send me your mp3 file and a snippet design I will investigate.
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Jan 22, 2016 1:41 AM    Post subject:

The speed difference is because SoundReader processes sound at difference rate (sps) than the PCMPlayer. You need to set those properties (sps) the same in both elements (should be also the same as the sps the sound was recorded with).

The other problem is because of caching (there is an error about it on console). You need to set NO CACHE.
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Jan 22, 2016 3:05 PM    Post subject:

Jarek,

Thanks for the help

George
Reply to topic