Cool. I am sure that the main reason why FMSound did not work was, that it is by default disabled in pharo. :-(((

I checked your snippets and found this behavior:

"SoundPlayer boinkScale" works fine, even if sound is disabled in the pharo settings.

"FMSound" is working fine", but only if sound is enabled in the pharo settings.

"SampleSound" example sounds really strange on OS X. I am no sure, if this is correct,

"SoundService default new" give me this message (in the pharo setting Sound theme "No Sounds" was selected),


an this Message (in the pharo settings Sound theme "Beeper sounds" was selected):



Thank you for your help. :-)))

BW,
Volkert



On 16.10.2012, at 20:25, phil@highoctane.be wrote:

From my previous post:

Also, you can use it this way (inspect and debug around to understand how all of this works, SoundPlayer isn't SoundSystem...)

Test class>>soundSamples
"Test hardware"

| ss |
SoundPlayer boinkScale. "See if sound is enabled"
SoundService soundEnabled. "This should answer the BaseSoundSystem class"
SoundService registeredClasses.
SoundService reset.
BaseSoundSystem soundEnabled: true.
SoundService default. "Let's make some noise"
ss := SoundService default new.
ss class soundEnabled.
ss class soundEnabled: true.
ss beep.
(FMSound lowMajorScaleOn: FMSound pluckedElecBass) play.
(FMSound lowMajorScaleOn: FMSound randomWeird1) play.
(FMSound majorScaleOn: FMSound oboe1) play.
FMSound testFMInteractively.
(SampledSound bachFugueVoice2On: SampledSound new) play.
SoundPlayer shutDown
 

2012/10/16 Volkert Barr <volkert@nivoba.de>
Need still some help. Can someone post a code snippet?

BW,
Volkert

On 13.10.2012, at 15:44, Volkert Barr wrote:

> No idea how. Have you a concrete example?
>
> On 13.10.2012, at 15:19, phil@highoctane.be wrote:
>
>> BaseSoundSystem soundEnabled: true just doesn't do all it should.
>>
>> SoundPlayer is the root of all; SoundSystems adds the background thread for multivoice play and mixing.
>>
>> Get SoundPlayer work, then take care of Soundsystem
>>
>> 2012/10/13 Volkert Barr <volkert@nivoba.de>
>> I loaded the package now i a clean Pharo 1.4 Image with the latest update: #14459 (on OS X Lion 10.7.5).
>>
>> The MIDIPianoKeyboardMorph works, but FMSound not (no errors, but silence)
>>
>> For FMSound i tried this
>> - BaseSoundSystem soundEnabled: true.
>> - FMSound organ1 play.
>>
>> Any hints here?
>>
>> Volkert
>>





--
www.nivoba.de
www.software-wartung.net
www.erlang-dach.org

PGP-Key on request / PGP-Schl�ssel auf Anfrage