The Trunk: Sound-mt.54.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Sound-mt.54.mcz

commits-2
Marcel Taeumel uploaded a new version of Sound to project The Trunk:
http://source.squeak.org/trunk/Sound-mt.54.mcz

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

Name: Sound-mt.54
Author: mt
Time: 6 April 2016, 6:30:41.370961 pm
UUID: a0aa6992-2b6c-c648-87b2-124df7b804ba
Ancestors: Sound-mt.53

Consider the sound-enabled preference also for playing MIDI scores.

=============== Diff against Sound-mt.53 ===============

Item was changed:
  ----- Method: MIDISound>>play (in category 'as yet unclassified') -----
  play
  "The base class ScorePlayer has two interfaces: a sound and a sound player. Choose the right interface depending on whether MIDI support is present."
 
+ SoundService soundEnabled ifFalse: [^ self].
+
  SimpleMIDIPort useMIDIDeviceForOutput ifTrue: [
  [self openMIDIPort]
  on: Error
  do: [
  SimpleMIDIPort askForDefault.
  [self openMIDIPort]
  on: Error
  do: [
  self inform: 'Use of MIDI device is not working. Using custom synthesis.\Go to preferences to change again.' withCRs.
  SimpleMIDIPort useMIDIDeviceForOutput: false]]].
 
  self reset; resumePlaying.!