JSampler
v0.8a

org.jsampler.task
Class Channel.SetVolume

java.lang.Object
  extended by 
      extended by org.jsampler.task.EnhancedTask
          extended by org.jsampler.task.Channel.SetVolume
Enclosing class:
Channel

public static class Channel.SetVolume
extends EnhancedTask

This taks sets the volume of a specific sampler channel.


Constructor Summary
Channel.SetVolume(int channel, float volume)
          Creates new instance of SetVolume.
 
Method Summary
 int getChannelId()
          Gets the ID of the channel whose volume should be changed.
 void run()
          The entry point of the task.
 
Methods inherited from class org.jsampler.task.EnhancedTask
isStopped, setErrorDetails, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Channel.SetVolume

public Channel.SetVolume(int channel,
                         float volume)
Creates new instance of SetVolume.

Parameters:
channel - The sampler channel number.
volume - The new volume value.
Method Detail

run

public void run()
The entry point of the task.


getChannelId

public int getChannelId()
Gets the ID of the channel whose volume should be changed.

Returns:
The ID of the channel whose volume should be changed.

JSampler
v0.8a

Copyright © 2007 Grigor Iliev. All rights reserved.