[Newbies] Re: playing a sound in squeak

tocadelius ndisparu at gmail.com
Sun Apr 4 12:55:22 UTC 2010


FrankBz <kyotosong <at> libero.it> writes:

> 
> 
> Hi, I was wondering, what's an easy and quick way to load and play a sound
> file, say a wav, in a squeak program?
> If you have experience with any other format (midi, mp3, etc.) feel free to
> share it. 
> What I'm really interested in is how sound works in squeak.
> 
> Regards
> 

Hi Frank, 

    Here is a basic load/play....

    thewavfile:= SampledSound fromWaveFileNamed: '(path)\filename.wav'

    (AbstractSound soundNamed:'thewavfile') play

Regards

Nicholas Tocadelius





More information about the Beginners mailing list