<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
I tested Tim's snippet (modified to use Delay forSeconds: ) on
Squeak 3.6 (Windows) and it has the same problem. But it's only
clipping and no wrapping on Windows! Still very ugly. <br>
<br>
Tomorrow I'll switch to a Pi to see if my recording to file also
shows wrapping. Then we'll know if it's the primitive handling audio
to the OS in Linux or Rapbian or if it happens inside Squeak's sound
architecture.<br>
<br>
Cheers,<br>
<br>
Herbert<br>
<br>
<div class="moz-cite-prefix">Am 27.12.2020 um 23:03 schrieb Herbert
König:<br>
</div>
<blockquote type="cite"
cite="mid:0af924ae-b7a6-21e1-a2f6-b638aca64592@gmx.net">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
I changed SoundPlayer class playLoop which I figured is what
passes the samples to the OS like attached, writing 1 mega samples
to an aiff file. TSTTCPW.<br>
I must have made a mistake because I suddenly get lost buffers but
frankly I had some wine :-).<br>
<br>
I used Tim's first snippet:<br>
<br>
"awful noise when mixing"<br>
|snd|<br>
snd := FMSound organ1.<br>
snd setPitch: 440 dur: 10 loudness: 0.9;<br>
play.<br>
1 second wait.<br>
<br>
FMSound brass1 setPitch: 470 // 2 dur:2 loudness: 0.9;<br>
play.<br>
1 second wait.<br>
snd stopGracefully<br>
<br>
It's repeatable the sound seems to have the right length but the
discontinuity marked red usually happens if the sound system of
the OS looses a buffer. I had my laptop run at 4 GHZ, the audio
output sounded normally bad and the loss is in the first second,
where the audio is still ok. Playing the recorded file reveals the
additional distortions.<br>
<br>
I just want to save another trip through the time zones so I put
it out buggy as it is. Maybe I just used the wrong place to do my
recording, maybe I recorded mono from a stereo buffer, whatever.<br>
<br>
Be mild :-)<br>
<br>
Herbert<br>
<br>
<br>
<img src="cid:part1.2EF80652.6847CFBE@gmx.net" alt="" class=""><br>
<br>
<div class="moz-cite-prefix">Am 27.12.2020 um 19:49 schrieb
Herbert König:<br>
</div>
<blockquote type="cite"
cite="mid:cf7ab590-eefa-4a65-bc0c-968ff1d0cec9@gmx.net">Next
step is to try to record the output before it goes to the OS and
<br>
see if the image or some primitive creates the problem. <br>
<br>
Cheers, <br>
<br>
Herbert <br>
<br>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">
</pre>
</blockquote>
<br>
</body>
</html>