Audio, Streams, and MailMessage question

Igor Stasenko siguctua at gmail.com
Thu Aug 23 08:38:53 UTC 2007


On 22/08/07, Brian Brown <rbb at techgame.net> wrote:
>
> On Aug 22, 2007, at 12:35 PM, Hans-Martin Mosner wrote:
>
> > You're probably not resetting the ReadWriteStream. As it is positioned
> > at the end after writing, reading up to end will return 0 bytes :-)
> >
>
> True! That worked as far as getting some data... unfortunately, the
> audio is just white noise!
>

This can be signs of GC actions. Squeak GC is moving GC, so it
possible that buffer you using for capturing sound is moved in memory,
and stream doesn't aware of it and reads data from old region of
memory, which replaced by other data.



> If I write out the audio using #storeWAVOnFileNamed: at the same time
> I use #storeWAVSamplesOn: the file I write to disk is normal, but the
> other one is worthless.
>
> If I look them with a binary editor, they are definitely different.
>
> Any other ideas?
>
> - Brian
>
>
>


-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list