« Return to Thread: RedDiskInSamplerGiga freeing buffers issue

Re: RedDiskInSamplerGiga freeing buffers issue

by Fredrik Olofsson :: Rate this Message:

Reply to Author | View in Thread

hi Martin,
ah, i found it.  was missing to 'close' the buffer in  
RedAbstractSamplerVoice's free method.  i guess i thought freeing was  
enough.
anyway, quark now updated.  many thanks for finding this bug.
_f

22 apr 2009 kl. 23.55 skrev Martin .:

> Hi Fredrik & List,
>
> thanks for the nice RedSampler quark!
>
> It seems that buffers aren't freed (or closed?) properly in  
> RedDiskInSamplerGiga:
>
> a= RedDiskInSamplerGiga(s);
>
> a.prepareForPlay(\snd1, "sounds/a11wlk01-44_1.aiff");
>
> a.play(\snd1);
>
> a.freeKey(\snd1);
> a.free;
>
> a.prepareForPlay(\snd1, "sounds/break");
>
> a.play(\snd1); //this plays a glitchy mix of the two previous  
> buffers the first time it's played
>
> a.play(\snd1); //now it works..
>
> this works fine in RedDiskInSampler.
>
> cheers,
> martin


   #|
      fredrikolofsson.com     klippav.org     musicalfieldsforever.com
   |#


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

 « Return to Thread: RedDiskInSamplerGiga freeing buffers issue