[Sugar-devel] Etoys mp3 files

Bert Freudenberg bert at freudenbergs.de
Wed May 30 10:35:21 EDT 2012


On 30.05.2012, at 13:55, Ajay Garg wrote:

> Same result.
> 
> Following are the locations of candidate files :::
> 
> ################################################################################
> [ajay at localhost ~]$ ls -l /usr/lib/squeak/3.10-5/
> -rwxr-xr-x. 1 root root 674862 May 30 17:24 Mpeg3Plugin
> 
> ################################################################################

This one should have been sufficient. You're right, it does not work. There is a genuine problem.

So I checked. I recompiled the VM after setting DEBUG to 1 in unix/vm/sqUnixExternalPrims.c which shows what's happening when Squeak tries to load the plugin.

The plugin is missing a few functions, which makes it fail to load. I found one C file that is not included when building the plugin.

This likely happened in 2009 when we switched to CMake. Which shows that nobody else except kids in UY are using the Mpeg3Plugin ;)

It would be much better if you included a real mp3 player in your OS, and not rely on the Squeak one ...

I'm not quite sure what the right fix is, but a workaround is to add "${src}/plugins/Mpeg3Plugin/Mpeg3Plugin.c" to the ${plugin}_sources LIST in unix/plugins/Mpeg3Plugin/config.cmake

After adding that line and rebuilding, the plugin works fine in the 4.4.7 VM. I did not try in the 3.10 VM but it should work too. 

The MP3 I tried played too fast. Not quite sure why that is, but that's enough investigating for me for now ...

(And don't bother with MPEG videos. There are only very few that play in this plugin. It's not a general-purpose MPEG video player)

- Bert -


More information about the Sugar-devel mailing list