Play an MP3 in Smalltalk
Sean Denegris has ported some code out of Sophie and into Squeak:
song := StreamingMP3Sound onFileNamed: '/path/to/yourFavorite.mp3'. song play. "song pause."
There are some caveats about the level of testing and such, but that's pretty cool.
Technorati Tags: squeak
Comments
Re: Play an MP3 in Smalltalk
[anonymous] December 14, 2010 16:52:26.968
Actually that is not Sophie code, it's a player that John Maloney wrote back in 2000/2001 as a first cut to play MP3, it was replaced a couple of times by other players by the etoy and other folks. The five rich and complex sound classes for Sophie sound are hung off SophieMovie