Пример #1
0
    protected static ResourcesUni createResources(HasSound objectWithSound)
    {
        ResourcesUni resources = new ResourcesUni();

        string soundPath = objectWithSound.getSoundPath();

        if (soundPath != null)
        {
            resources.addAsset(AUDIO_STR, soundPath);
        }
        return(resources);
    }
Пример #2
0
 public ChangeSimpleSoundTool(HasSound descrSound) : base(createResources(descrSound), createAssetInfoArray(), 0, 0)
 {
     this.objectWithSound = descrSound;
 }
Пример #3
0
 public DeleteSimpleSoundTool(HasSound objectWithSound)
 {
     this.objectWithSound = objectWithSound;
     oldPath = objectWithSound.getSoundPath();
 }
 public SelectSimpleSoundTool(HasSound sound) : base(createResources(sound), createAssetInfoArray(), 0, 0)
 {
     this.objectWithSound = sound;
 }
Пример #5
0
 public void TransferSound(byte[] data)
 {
     HasSound?.Invoke(this, data);
 }