[squeak-dev] Re: Mac Carbon VM 4.2.3b1 sound recording busted
John M McIntosh
johnmci at smalltalkconsulting.com
Wed Mar 31 05:33:36 UTC 2010
Eliot's change to the SoundPlugin primitiveSoundRecordSamplesInto altered the meaning of the bufSizeInBytes
before the platform code would attempt to calculate the real size based on the startWordIndex, but his change moved
that calculation into the plugin code, so without altering the platform code you end up doing a double subtraction of the startWordIndex offset.
In the carbon vm case this resulted in an underflow for an unsigned integer which then kills you when you say why yes there
is 0xFFFFFAB bytes of storage to read into...
Based on his emal of "March 29, 2010 12:05:07 PM PDT"
Likely there is still confusion about exactly how it should work and be fixed.
On 2010-03-30, at 8:56 PM, Andreas Raab wrote:
> On 3/30/2010 8:19 PM, John M McIntosh wrote:
>>> Mac Carbon VM 4.2.3b1 sound recording busted
>> Must always remember to test (lot more) things after applying VMMaker changes.
>> I'll have a 4.2.4b1 VM in a few days after some dust settles.
>> But for now if you hit the SoundRecorder record button in your squeak.image it will crash.
> Oh dear. Same for Windows 4.0.1. Any ideas what's causing this?
> - Andreas
John M. McIntosh <johnmci at smalltalkconsulting.com> Twitter: squeaker68882
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2445 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100330/de272189/smime.bin
More information about the Squeak-dev