'From etoys3.0 of 24 February 2008 [latest update: #2156] on 23 September 2008 at 4:46:41 pm'! "Change Set: WsReleasesInput-yo Date: 23 September 2008 Author: Yoshiki Ohshima WorldStethoscope was doing the mic mode fiddling at wrong timing. The mode change primitive turns the mic on, but it was called after shutting down the input device."! !WsWorldStethoscope methodsFor: 'control' stamp: 'yo 9/23/2008 16:33'! stop self directInputMode: directInputMode withBiasInput: biasInput. soundInput stopRecording. listening _ false! ! !WsWorldStethoscope methodsFor: 'initialization' stamp: 'yo 9/23/2008 16:34'! initialize super initialize. views := Array new: 0. fft _ FFT new: 512. self cutOffLevel: self defaultCutOffLevel. self offset: self defaultOffset. self passOver: self defaultPassOver. self passUnder: self defaultPassUnder. directInputMode _ false. biasInput _ true. representativeData _ 0. sounds _ Array with: WsSound new with: WsSound new with: WsSound new. soundInput _ SoundInputStream new samplingRate: 22050. self sortByLevel. totalSamplesInGiga _ 0. totalSamples _ 0. recordedCount _ 0. updateIntervalInSec _ 0.25. "in seconds." wantsToRecord _ false. self calcNext: updateIntervalInSec and: soundInput samplingRate. self addView: self. self rangeFinderModeOff! !