<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 12, 2014 at 8:44 AM, Chris Muller <span dir="ltr"><<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, Sep 11, 2014 at 6:38 PM, David T. Lewis <<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>> wrote:<br>
> On Thu, Sep 11, 2014 at 02:47:55PM -0500, Chris Muller wrote:<br>
>><br>
>> On Thu, Sep 11, 2014 at 2:42 PM, Chris Muller <<a href="mailto:asqueaker@gmail.com">asqueaker@gmail.com</a>> wrote:<br>
>> > I've decided I want to get a feel for what my app is doing and at what<br>
>> > rate by, literally, listening to it. I want to put in some brief<br>
>> > beeps into strategic locations.<br>
>> ><br>
>> > But sound is an area where I have exactly zero experience. I want the<br>
>> > sounds to play but with minimal impact on the running program; i.e.,<br>
>> > I'm willing to make the beeps very short, but even a 10ms beep (would<br>
>> > I even be able to hear that?) would slow the program down.<br>
>> ><br>
>> > And yet, if I tried to play them in the background, they will not be<br>
>> > in-sync with with the real-time state of the app. I suppose another<br>
>> > option would be to record the events I'm interested in and their time<br>
>> > and play them back later, but I'm more interested in the *real-time*<br>
>> > state.<br>
>> ><br>
>> > Finally, how can I play any sound at all with Squeak and Cog on Linux?<br>
>> > When I try some of the demo sounds on FMSound, there is no sound and<br>
>> > I see this message in the console:<br>
>> ><br>
>> > sound: /dev/dsp: No such file or directory<br>
>> ><br>
>> > Of course, no other apps on this machine have any trouble playing<br>
>> > sounds, so is something simply pointing in the wrong place?<br>
>><br>
>> squeak -help reports:<br>
>><br>
>> Available drivers:<br>
>> vm-sound-null<br>
>> vm-sound-ALSA<br>
>> vm-sound-OSS<br>
>><br>
>> But when I try:<br>
>><br>
>> squeak -vm sound=ALSA my.image<br>
>><br>
>> and try to play a sound I get this on the console:<br>
>><br>
>> sound_Start(default)<br>
>> soundStart: snd_add_pcm_handler: Function not implemented<br>
>><br>
><br>
> Sound works fine on my trusty SuSE box, but not at all on my user-friendly<br>
> but generally untrustworthy Ubuntu laptop. What kind of system are you using?<br>
<br>
</div></div>I'm using one of the most popular Linux distros, Ubuntu.<br>
<br>
I tried the -vm-sound-alsa switch to the vm (instead of -vm<br>
sound=ALSA) but the same message is produced on the console when I try<br>
to "FMSound pluckedElecBass play".<br>
<span class=""><br>
sound_Start(default)<br>
soundStart: snd_add_pcm_handler: Function not implemented<br>
<br>
</span>Does this mean that Cog does not support sound? Using "-vm sound=OSS"....<br>
.....<br>
WAIT!!!<br>
....<br>
Success!!!<br>
<br>
I managed to get a sound out of Cog by:<br>
<br>
1) copying so.vm-sound-pulse from my interpreter VM lib directory to<br>
Cog's lib directory<br>
2) renaming so.vm-sound-pulse to vm-sound-pulse<br>
3) setting execute permissions on vm-sound-pulse<br>
<br>
With that, I can actually get sound out of Squeak..<br>
<br>
And, now, when I do squeak -help, "vm-sound-pulse" is now listed.<br>
<br>
Eliot, do you think we could eventually include this driver in your<br>
Cog releases?<br></blockquote><div><br></div><div>I've no objection. Any one want to volunteer to get this working for the Cog builds?</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">> Sound systems have been changing on Linux distributions, and I suspect that<br>
> we may be falling behind in our support for this.<br>
><br>
> Dave<br>
><br>
><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>