<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">&lt;<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@gmail.com</a>&gt;</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 &lt;<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>&gt; wrote:<br>
&gt; On Thu, Sep 11, 2014 at 02:47:55PM -0500, Chris Muller wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Sep 11, 2014 at 2:42 PM, Chris Muller &lt;<a href="mailto:asqueaker@gmail.com">asqueaker@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; I&#39;ve decided I want to get a feel for what my app is doing and at what<br>
&gt;&gt; &gt; rate by, literally, listening to it.  I want to put in some brief<br>
&gt;&gt; &gt; beeps into strategic locations.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; But sound is an area where I have exactly zero experience.  I want the<br>
&gt;&gt; &gt; sounds to play but with minimal impact on the running program; i.e.,<br>
&gt;&gt; &gt; I&#39;m willing to make the beeps very short, but even a 10ms beep (would<br>
&gt;&gt; &gt; I even be able to hear that?) would slow the program down.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; And yet, if I tried to play them in the background, they will not be<br>
&gt;&gt; &gt; in-sync with with the real-time state of the app.  I suppose another<br>
&gt;&gt; &gt; option would be to record the events I&#39;m interested in and their time<br>
&gt;&gt; &gt; and play them back later, but I&#39;m more interested in the *real-time*<br>
&gt;&gt; &gt; state.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Finally, how can I play any sound at all with Squeak and Cog on Linux?<br>
&gt;&gt; &gt;  When I try some of the demo sounds on FMSound, there is no sound and<br>
&gt;&gt; &gt; I see this message in the console:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;     sound: /dev/dsp: No such file or directory<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Of course, no other apps on this machine have any trouble playing<br>
&gt;&gt; &gt; sounds, so is something simply pointing in the wrong place?<br>
&gt;&gt;<br>
&gt;&gt; squeak -help reports:<br>
&gt;&gt;<br>
&gt;&gt; Available drivers:<br>
&gt;&gt;   vm-sound-null<br>
&gt;&gt;   vm-sound-ALSA<br>
&gt;&gt;   vm-sound-OSS<br>
&gt;&gt;<br>
&gt;&gt; But when I try:<br>
&gt;&gt;<br>
&gt;&gt;    squeak -vm sound=ALSA my.image<br>
&gt;&gt;<br>
&gt;&gt; and try to play a sound I get this on the console:<br>
&gt;&gt;<br>
&gt;&gt;    sound_Start(default)<br>
&gt;&gt;    soundStart: snd_add_pcm_handler: Function not implemented<br>
&gt;&gt;<br>
&gt;<br>
&gt; Sound works fine on my trusty SuSE box, but not at all on my user-friendly<br>
&gt; but generally untrustworthy Ubuntu laptop. What kind of system are you using?<br>
<br>
</div></div>I&#39;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 &quot;FMSound pluckedElecBass play&quot;.<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 &quot;-vm sound=OSS&quot;....<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&#39;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, &quot;vm-sound-pulse&quot; 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&#39;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">&gt; Sound systems have been changing on Linux distributions, and I suspect that<br>
&gt; we may be falling behind in our support for this.<br>
&gt;<br>
&gt; Dave<br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>