Play MP3s in-image

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Play MP3s in-image

Sean P. DeNigris
Administrator
I extracted the mp3 support from Sophie.  It works in Squeak 4.1 and Pharo 1.1.1 on Mac OS 10.6.5

Load SophiePort from http://www.squeaksource.com/SPDProjectUpdates
Then try:
        song := StreamingMP3Sound onFileNamed: '/path/to/yourFavorite.mp3'.
        song play.
        song pause.

Question:
* there were checks like the following that had to be removed for Pharo 1.1.1: "WeakArray isFinalizationSupported ifFalse:[^anObject]".  Is this no longer necessary?

n.b. I am unclear about the license - Sophie has one license, the code itself seems to be SqueakL.  Do your own investigation.

Sean



Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Play MP3s in-image

johnmci
Actually this is the old ancient first cut at an MP3 player that was written by John Maloney in 2000. It's pre-sophie and I'm not sure of the licensing as it might have been purged from the image and replaced by  other code in the last 10 years from contributions by the eToys work, and yet another player I wrote.

The *real* Sophie player starts with the SophieMovie abstract class.

On 2010-12-13, at 8:52 AM, DeNigris Sean wrote:

> I extracted the mp3 support from Sophie.  It works in Squeak 4.1 and Pharo 1.1.1 on Mac OS 10.6.5
>
> Load SophiePort from http://www.squeaksource.com/SPDProjectUpdates
> Then try:
> song := StreamingMP3Sound onFileNamed: '/path/to/yourFavorite.mp3'.
> song play.
> song pause.
>
> Question:
> * there were checks like the following that had to be removed for Pharo 1.1.1: "WeakArray isFinalizationSupported ifFalse:[^anObject]".  Is this no longer necessary?
>
> n.b. I am unclear about the license - Sophie has one license, the code itself seems to be SqueakL.  Do your own investigation.
>
> Sean
>
>
>

--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================