Re: [AD] Audio addon API / Re: Renaming of functions in kcm_audio addon

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2008-12-01, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> On 2008-11-30, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
> > On 30-Nov-08, at 9:33 PM, Peter Wang wrote:
> > 
> > > And/or use the recycling idea above instead of destroying  
> > > ALLEGRO_SAMPLEs.
> > 
> > Makes sense, but I'm not sure how that solves the problem of  
> > destroying the data while it's being used by an ALLEGRO_SAMPLE?
> 
> It doesn't solve the problem, but it means you can query a sample's
> playback status without having it destroyed in the background.

Recycling is definitely the better approach.  It's almost as if
al_set_sample_data() was added for this purpose and I forgot about it.
Patch attached.

Peter

Attachment: kcm_easy.diff.gz
Description: application/gunzip



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/