Closed alamboley closed 7 years ago
On a specific project, I 'd to create a class:
package sound {
import citrus.sounds.CitrusSoundGroup;
public class VoiceSoundGroup extends CitrusSoundGroup {
static public const VOICE:String = "VOICE";
public function VoiceSoundGroup() {
polyphonic = false;
_groupID = VOICE;
}
}
}
I would rather: new CitrousSoundGroup({groupID:"voice", polyphonic:false});`
Solution :
var voiceSoundGroup:CitrusSoundGroup = sound.createGroup("VOICE"); voiceSoundGroup.polyphonic = false;
now creating your own CitrusSoundGroup class is really only for custom sound group behaviour like automatic cross fade for example.
What do you mean?