org.linuxsampler.lscp.event
Class VoiceCountEvent
java.lang.Object
java.util.EventObject
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
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 |
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.
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.
Copyright © 2009 Grigor Iliev. All rights reserved.