RedDiskInSamplerGiga freeing buffers issue

View: New views
3 Messages — Rating Filter:   Alert me  

RedDiskInSamplerGiga freeing buffers issue

by Martin . :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: RedDiskInSamplerGiga freeing buffers issue

by Fredrik Olofsson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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/

Re: RedDiskInSamplerGiga freeing buffers issue

by Martin . :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Takk Fredrik! works now :)

cheers,
martin

On Thu, Apr 23, 2009 at 11:30 AM, Fredrik Olofsson <f@...> wrote:
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/