jlscp
v0.8

org.linuxsampler.lscp.event
Class VoiceCountEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.linuxsampler.lscp.event.VoiceCountEvent
All Implemented Interfaces:
java.io.Serializable

public class VoiceCountEvent
extends java.util.EventObject

A semantic event which indicates that the number of active voices in a sampler channel has changed.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
VoiceCountEvent(java.lang.Object source, int samplerChn, int count)
          Constructs a VoiceCountEvent object.
 
Method Summary
 int getSamplerChannel()
          Gets the numerical ID of the sampler channel for which the number of active voices has changed.
 int getVoiceCount()
          Gets the new number of active voices.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VoiceCountEvent

public VoiceCountEvent(java.lang.Object source,
                       int samplerChn,
                       int count)
Constructs a VoiceCountEvent object.

Parameters:
source - The object that originated the event.
samplerChn - The number of the sampler channel for which the number of active voices has changed.
count - The new number of active voices.
Method Detail

getSamplerChannel

public int getSamplerChannel()
Gets the numerical ID of the sampler channel for which the number of active voices has changed.

Returns:
The numerical ID of the sampler channel for which the number of active voices has changed.

getVoiceCount

public int getVoiceCount()
Gets the new number of active voices.

Returns:
The new number of active voices.

jlscp
v0.8

Copyright © 2009 Grigor Iliev. All rights reserved.