Small synthesiser class request


#1

Have Synthesiser::addSound() return a pointer to the new object…

    /** Adds a new sound to the synthesiser.

        The object passed in is reference counted, so will be deleted when it is removed
        from the synthesiser, and when no voices are still using it.
    */
    SynthesiserSound* addSound (const SynthesiserSound::Ptr& newSound);
SynthesiserSound* Synthesiser::addSound (const SynthesiserSound::Ptr& newSound)
{
    const ScopedLock sl (lock);
    return sounds.add (newSound);
}

Thanks,

Rail


#2

Yes, good request, will add that...


#3

Much appreciated.

Thanks,

Rail