0
0

To whom it may concern:

I was wondering if (in the future) the following design pattern could be added. Currently if you have a list of sounds that are owned by a sound group, you have to do something like this to release them all:

[code:36utxrsw]
{
int size;

m_sound_group->getNumSounds( &size );

while ( size > 0 )
{
    FMOD::Sound* sound;

    m_sound_group->getSound( 0 , &sound );

    sound->release();

    m_sound_group->getNumSounds( &size );
}

}
[/code:36utxrsw]

It would be nice if all the sounds could be released via a single method on the SoundGroup class, maybe releaseSounds() or something. Thoughts?

Best,

Kevin @ Backflip Studios

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.