Exemplo n.º 1
0
        public override AsSoundChannel Play(float startTime, int loops, AsSoundTransform sndTransform)
        {
            Debug.Assert(loops == 0 || loops == 1);

            AsSoundEffectChannel channel = new AsSoundEffectChannel(mEffect, sndTransform);
            channel.play(loops);
            return channel;
        }
 public AsSoundEffectChannel(SoundEffect effect, AsSoundTransform transform) : base(transform)
 {
     mInstance = effect.CreateInstance();
     applyTransform(transform);
 }
Exemplo n.º 3
0
 public virtual AsSoundChannel play(float startTime, int loops, AsSoundTransform sndTransform)
 {
     return(mSound.Play(startTime, loops, sndTransform));
 }
 public virtual void setSoundTransform(AsSoundTransform sndTransform)
 {
     mSoundTransform = sndTransform;
     applyTransform(sndTransform);
 }
 protected abstract void applyTransform(AsSoundTransform transform);
 protected AsSoundChannel(AsSoundTransform transform)
 {
     mSoundTransform = transform;
 }
Exemplo n.º 7
0
 public abstract AsSoundChannel Play(float startTime, int loops, AsSoundTransform sndTransform);
 public AsSoundEffectChannel(SoundEffect effect, AsSoundTransform transform)
     : base(transform)
 {
     mInstance = effect.CreateInstance();
     applyTransform(transform);
 }
 protected abstract void applyTransform(AsSoundTransform transform);
Exemplo n.º 10
0
 public virtual void setSoundTransform(AsSoundTransform sndTransform)
 {
     mSoundTransform = sndTransform;
     applyTransform(sndTransform);
 }
Exemplo n.º 11
0
 protected AsSoundChannel(AsSoundTransform transform)
 {
     mSoundTransform = transform;
 }
Exemplo n.º 12
0
 public override AsSoundChannel Play(float startTime, int loops, AsSoundTransform sndTransform)
 {
     AsMusicChannel channel = new AsMusicChannel(mSong, sndTransform);
     channel.play(loops);
     return channel;
 }
 protected override void applyTransform(AsSoundTransform transform)
 {
     MediaPlayer.Volume = transform.getVolume();
 }
 public AsMusicChannel(Song song, AsSoundTransform transform) : base(transform)
 {
     this.mSong = song;
     applyTransform(transform);
 }
 protected override void applyTransform(AsSoundTransform transform)
 {
     mInstance.Volume = transform.getVolume();
     mInstance.Pan    = transform.getPan();
 }
Exemplo n.º 16
0
 public virtual AsSoundChannel play(float startTime, int loops, AsSoundTransform sndTransform)
 {
     return mSound.Play(startTime, loops, sndTransform);
 }
Exemplo n.º 17
0
 public AsMusicChannel(Song song, AsSoundTransform transform)
     : base(transform)
 {
     this.mSong = song;
     applyTransform(transform);
 }
 protected override void applyTransform(AsSoundTransform transform)
 {
     mInstance.Volume = transform.getVolume();
     mInstance.Pan = transform.getPan();
 }
Exemplo n.º 19
0
 protected override void applyTransform(AsSoundTransform transform)
 {
     MediaPlayer.Volume = transform.getVolume();
 }