4249 |
|
|
4250 |
/** |
/** |
4251 |
* Gets the current list of effect instances. |
* Gets the current list of effect instances. |
4252 |
* @return An <code>EffectInstance</code> array |
* @return An <code>EffectInstanceInfo</code> array |
4253 |
* providing the current list of effect instances. |
* providing the current list of effect instances. |
4254 |
* @throws IOException If some I/O error occurs. |
* @throws IOException If some I/O error occurs. |
4255 |
* @throws LscpException If LSCP protocol corruption occurs. |
* @throws LscpException If LSCP protocol corruption occurs. |
4256 |
*/ |
*/ |
4257 |
public synchronized EffectInstance[] |
public synchronized EffectInstanceInfo[] |
4258 |
getEffectInstances() throws IOException, LscpException, LSException { |
getEffectInstances() throws IOException, LscpException, LSException { |
4259 |
Integer[] idS = getEffectInscanceIDs(); |
Integer[] idS = getEffectInscanceIDs(); |
4260 |
if(getPrintOnlyMode()) return null; |
if(getPrintOnlyMode()) return null; |
4261 |
|
|
4262 |
EffectInstance[] eis = new EffectInstance[idS.length]; |
EffectInstanceInfo[] eis = new EffectInstanceInfo[idS.length]; |
4263 |
|
|
4264 |
for(int i = 0; i < eis.length; i++) |
for(int i = 0; i < eis.length; i++) |
4265 |
eis[i] = getEffectInstanceInfo(idS[i]); |
eis[i] = getEffectInstanceInfo(idS[i]); |
4281 |
/** |
/** |
4282 |
* Gets the current informations about the specified effect instance. |
* Gets the current informations about the specified effect instance. |
4283 |
* @param id The numerical ID of the effect instance. |
* @param id The numerical ID of the effect instance. |
4284 |
* @return <code>EffectInstance</code> object containing |
* @return <code>EffectInstanceInfo</code> object containing |
4285 |
* the current informations about the specified effect instance. |
* the current informations about the specified effect instance. |
4286 |
* @throws IOException If an I/O error occurs. |
* @throws IOException If an I/O error occurs. |
4287 |
* @throws LscpException If LSCP protocol corruption occurs. |
* @throws LscpException If LSCP protocol corruption occurs. |
4288 |
* @throws LSException If the effect instance ID is invalid. |
* @throws LSException If the effect instance ID is invalid. |
4289 |
*/ |
*/ |
4290 |
public synchronized EffectInstance |
public synchronized EffectInstanceInfo |
4291 |
getEffectInstanceInfo(int id) throws IOException, LscpException, LSException { |
getEffectInstanceInfo(int id) throws IOException, LscpException, LSException { |
4292 |
EffectInstance ei = new EffectInstance(); |
EffectInstanceInfo ei = new EffectInstanceInfo(); |
4293 |
if(!retrieveInfo("GET EFFECT_INSTANCE INFO " + id, ei)) return null; |
if(!retrieveInfo("GET EFFECT_INSTANCE INFO " + id, ei)) return null; |
4294 |
ei.setInstanceId(id); |
ei.setInstanceId(id); |
4295 |
|
|
4362 |
/** |
/** |
4363 |
* Gets the current list of send effect chains on the specified audio output device. |
* Gets the current list of send effect chains on the specified audio output device. |
4364 |
* @param audioDeviceId The numerical ID of the audio output device. |
* @param audioDeviceId The numerical ID of the audio output device. |
4365 |
* @return An <code>EffectInstance</code> array |
* @return An <code>EffectInstanceInfo</code> array |
4366 |
* providing the current list of effect instances. |
* providing the current list of effect instances. |
4367 |
* @throws IOException If some I/O error occurs. |
* @throws IOException If some I/O error occurs. |
4368 |
* @throws LscpException If LSCP protocol corruption occurs. |
* @throws LscpException If LSCP protocol corruption occurs. |
4369 |
*/ |
*/ |
4370 |
public synchronized EffectChain[] |
public synchronized EffectChainInfo[] |
4371 |
getSendEffectChains(int audioDeviceId) throws IOException, LscpException, LSException { |
getSendEffectChains(int audioDeviceId) throws IOException, LscpException, LSException { |
4372 |
Integer[] idS = getSendEffectChainIDs(audioDeviceId); |
Integer[] idS = getSendEffectChainIDs(audioDeviceId); |
4373 |
if(getPrintOnlyMode()) return null; |
if(getPrintOnlyMode()) return null; |
4374 |
|
|
4375 |
EffectChain[] ecs = new EffectChain[idS.length]; |
EffectChainInfo[] ecs = new EffectChainInfo[idS.length]; |
4376 |
|
|
4377 |
for(int i = 0; i < ecs.length; i++) { |
for(int i = 0; i < ecs.length; i++) { |
4378 |
ecs[i] = getSendEffectChainInfo(audioDeviceId, idS[i]); |
ecs[i] = getSendEffectChainInfo(audioDeviceId, idS[i]); |
4425 |
* Gets the current information of a send effect chain. |
* Gets the current information of a send effect chain. |
4426 |
* @param audioDeviceId The numerical ID of the audio output device. |
* @param audioDeviceId The numerical ID of the audio output device. |
4427 |
* @param chainId The numerical ID of the send effect chain. |
* @param chainId The numerical ID of the send effect chain. |
4428 |
* @return <code>EffectChain</code> object containing |
* @return <code>EffectChainInfo</code> object containing |
4429 |
* the current informations about the specified effect chain. |
* the current informations about the specified effect chain. |
4430 |
* @throws IOException If an I/O error occurs. |
* @throws IOException If an I/O error occurs. |
4431 |
* @throws LscpException If LSCP protocol corruption occurs. |
* @throws LscpException If LSCP protocol corruption occurs. |
4432 |
* @throws LSException If the audio device ID or the effect chain ID is invalid. |
* @throws LSException If the audio device ID or the effect chain ID is invalid. |
4433 |
*/ |
*/ |
4434 |
public synchronized EffectChain |
public synchronized EffectChainInfo |
4435 |
getSendEffectChainInfo(int audioDeviceId, int chainId) |
getSendEffectChainInfo(int audioDeviceId, int chainId) |
4436 |
throws IOException, LscpException, LSException |
throws IOException, LscpException, LSException |
4437 |
{ |
{ |
4441 |
if(getPrintOnlyMode()) return null; |
if(getPrintOnlyMode()) return null; |
4442 |
|
|
4443 |
ResultSet rs = getMultiLineResultSet(); |
ResultSet rs = getMultiLineResultSet(); |
4444 |
EffectChain chain = null; |
EffectChainInfo chain = null; |
4445 |
|
|
4446 |
for(String s : rs.getMultiLineResult()) { |
for(String s : rs.getMultiLineResult()) { |
4447 |
if(s.startsWith("EFFECT_SEQUENCE: ")) { |
if(s.startsWith("EFFECT_SEQUENCE: ")) { |
4448 |
s = s.substring("EFFECT_SEQUENCE: ".length()); |
s = s.substring("EFFECT_SEQUENCE: ".length()); |
4449 |
Integer[] eis = parseIntList(s); |
Integer[] eis = parseIntList(s); |
4450 |
EffectInstance[] instances = new EffectInstance[eis.length]; |
EffectInstanceInfo[] instances = new EffectInstanceInfo[eis.length]; |
4451 |
for(int i = 0; i < eis.length; i++) { |
for(int i = 0; i < eis.length; i++) { |
4452 |
instances[i] = getEffectInstanceInfo(eis[i]); |
instances[i] = getEffectInstanceInfo(eis[i]); |
4453 |
} |
} |
4454 |
chain = new EffectChain(instances); |
chain = new EffectChainInfo(instances); |
4455 |
chain.setChainId(chainId); |
chain.setChainId(chainId); |
4456 |
} |
} |
4457 |
} |
} |