[etoys-dev] Etoys: Sound-kfr.19.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jul 18 20:31:06 EDT 2011

Karl Ramberg uploaded a new version of Sound to project Etoys:

==================== Summary ====================

Name: Sound-kfr.19
Author: kfr
Time: 19 July 2011, 2:30:28 am
UUID: 77e55006-0169-884c-b36d-34592e02ab51
Ancestors: Sound-kfr.18

Do not initialize SounPlayer every time sound is played

=============== Diff against Sound-kfr.17 ===============

Item was changed:
  ----- Method: SoundPlayer class>>initialize (in category 'initialization') -----
  	"SoundPlayer initialize; shutDown; startUp"
  	"Details: BufferMSecs represents a tradeoff between latency and quality. If BufferMSecs is too low, the sound will not play smoothly, especially during long-running primitives such as large BitBlts. If BufferMSecs is too high, there will be a long time lag between when a sound buffer is submitted to be played and when that sound is actually heard. BufferMSecs is typically in the range 50-200."
  	SamplingRate := 22050.
  	BufferMSecs := 120.
  	Stereo := true.
+ 	Preferences
- 	"Preferences
  		addPreference: #soundReverb
  		categories: #(media)
  		default: true
  		balloonHelp: 'If true, a little echo will be added, making it sound as if it is in a larger space.'
  		projectLocal: true
  		changeInformee: self
  		changeSelector: #reverbChanged.
+ 	self reverbChanged.
- 	self reverbChanged."

Item was changed:
  ----- Method: SoundPlayer class>>startUpWithSound: (in category 'snapshotting') -----
  startUpWithSound: aSound
  	"Start up the player process."
+ 	"SoundPlayer initialize."
- 	SoundPlayer initialize.
  		startPlayerProcessBufferSize: (BufferMSecs * SamplingRate) // 1000
  		rate: SamplingRate
  		stereo: Stereo
  		sound: aSound.

More information about the etoys-dev mailing list