Squeak SmalltalkJoker Squeak Smalltalk : Multimedia : prevnext Music Garbled Under Windows

Well as some background information, the MPEGPlayer plugin doesn't
play or display anything. Rather plugin just decompresses the bits
and presents them to Squeak for Squeak to display the video and to
play the sound.

I'd suggest you confirm that Squeak sound playing works correctly
first, see the examples category on the class side of Speaker.

This should give you an indication if sound is ok from Squeaks
viewpoint, originally I used QueuedSound (part of this logic) in the
mpeg player to do the playback.

Also can execute the following code to playback video/audio for the
my.mpg file. This code plays back mp3 without Morphic involvement,
just so you can rule that out as an issue.

| foo |
foo _ MpegPlayer playFile: 'my.mpg'. "provide the file name here"
foo playStreamWaitTilDone: 0 "To play audio/video as currrent process"

Brent,

Another quick test of the Squeak sound system is:

  AbstractSound stereoBachFugue play

If this comes out garbled or with stutters/dropouts, then it may be because
Squeak isn't

getting enough processor cycles to compute sound buffers in time. That same
problem

would affect MP3 playing. If this is the case, some things to try are:

  1. quit from all applications other than Squeak (especially other media
  players!)

  2. turn off as many background jobs as possible
  3. if you are on a laptop, check your power management settings; if there is
      a "power cycling" or "power conservation" mode, try disabling it
  4. you might have trouble with MP3 if you're running on very old, slow
      hardware (seems unlikely, given that you're running Win 2000)

If all of that fails, you can increase the size of the sound buffer by editing
SoundPlayer class>initialize. Then execute the comment at the top of that
method, "SoundPlayer initialize; shutDown; startUp" to make it take effect.

When you figure out what the problem is, drop us a note and let us know...

The Bach fugue example plays perfectly on my Windows 2000 machine
(an IBM Thinkpad).

	-- John