protected static ResourcesUni createResources(HasSound objectWithSound) { ResourcesUni resources = new ResourcesUni(); string soundPath = objectWithSound.getSoundPath(); if (soundPath != null) { resources.addAsset(AUDIO_STR, soundPath); } return(resources); }
public ChangeSimpleSoundTool(HasSound descrSound) : base(createResources(descrSound), createAssetInfoArray(), 0, 0) { this.objectWithSound = descrSound; }
public DeleteSimpleSoundTool(HasSound objectWithSound) { this.objectWithSound = objectWithSound; oldPath = objectWithSound.getSoundPath(); }
public SelectSimpleSoundTool(HasSound sound) : base(createResources(sound), createAssetInfoArray(), 0, 0) { this.objectWithSound = sound; }
public void TransferSound(byte[] data) { HasSound?.Invoke(this, data); }