Brad, a silly question: are you using a 64 bits linux? I&#39;m asking because your symptoms are exactly as those of <a href="http://bugs.squeak.org/view.php?id=7103">http://bugs.squeak.org/view.php?id=7103</a><br><br>Regards<br>
José L.<br><br><br><div class="gmail_quote">2008/11/18 Derek O&#39;Connell <span dir="ltr">&lt;<a href="mailto:doconnel@gmail.com">doconnel@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Brad,<br>
<br>
&quot;playLoop&quot; is used with a semaphore if SoundPlayer&gt;&gt;primSoundStartBufferSize:rate:stereo:semaIndex: returns without error. Otherwise &quot;oldStylePlayLoop&quot; is used with a delay instead of the semaphore. Without debug info I cannot say for certain what the problem is but you might want to change SoundPlayer&gt;&gt;primSoundStartBufferSize:rate:stereo:semaIndex: so it skips the actual call to the primitive, which will force the use of the oldStylePlayloop, and see if this gets you any where.<br>

<br>
Put some printf() statements in the C-code for quick debug info or see if there is &quot;strace&quot; for your platform. If you intend to do more coding at this level then gdb will probably save you a lot time in future.<br>

<br>
HTH<br>
<br>
DMOC<div><div></div><div class="Wj3C7c"><br>
<br>
Brad Fuller wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;m not any further, but this is what I&#39;ve found:<br>
<br>
I seem to get the segfault it SoundPlayer&gt;&gt;playLoop at:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;self primSoundPlaySamples: count from: Buffer startingAt: 1.<br>
<br>
But, I don\&#39; know really where to go from here. I checked out<br>
SoundPlugin and sqUnixSoundALSA.c<br>
and they both have the function:<br>
<br>
 &nbsp;int snd_PlaySamplesFromAtLength(int frameCount, int arrayIndex, int<br>
startIndex)<br>
<br>
which I assume is what is being called from Squeak.<br>
<br>
When I run &#39;configure&#39;, the audio section that is sent to the terminal<br>
looks correct:<br>
<br>
checking for Advanced Linux Sound Architecture... yes<br>
checking for Mac OS X CoreAudio... no<br>
******** disabling vm-sound-MacOSX<br>
checking for Network Audio System... no<br>
******** disabling vm-sound-NAS<br>
checking for Advanced Linux Sound Architecture... yes<br>
checking for SunOS/Solaris audio... no<br>
******** disabling vm-sound-Sun<br>
checking for custom sound support... no<br>
******** disabling vm-sound-custom<br>
<br>
(don&#39;t know why ALSA is mentioned twice, though.)<br>
<br>
Here&#39;s the segfault again:<br>
<br>
Segmentation fault<br>
<br>
20547312 [] in &gt;playLoop<br>
20547404 [] in Semaphore&gt;critical:<br>
20547220 BlockContext&gt;ensure:<br>
20547128 Semaphore&gt;critical:<br>
20515212 &gt;playLoop<br>
20515028 [] in &gt;startPlayerProcessBufferSize:rate:stereo:sound:<br>
20515120 [] in BlockContext&gt;newProcess<br>
Aborted<br>
<br>
BTW, it didn&#39;t matter when I changed the sample rate to 44100, still<br>
had the segfault.<br>
<br>
I don&#39;t know where to turn from here, short of compiling with debug<br>
flag on and starting up gdb.<br>
Any ideas much appreciated. If someone knows the architecture of what<br>
happens when the primitive is called and what should happen in the<br>
ALSA plugin code that could be helpful.<br>
<br>
thanks for reading!<br>
<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br>