本文整理汇总了Java中com.sun.voip.MixDataSource类的典型用法代码示例。如果您正苦于以下问题:Java MixDataSource类的具体用法?Java MixDataSource怎么用?Java MixDataSource使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MixDataSource类属于com.sun.voip包,在下文中一共展示了MixDataSource类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MixDescriptor
import com.sun.voip.MixDataSource; //导入依赖的package包/类
public MixDescriptor(MixDataSource mixDataSource, double attenuation,
double[] spatialValues) {
this.mixDataSource = mixDataSource;
this.attenuation = attenuation;
if (spatialValues != null) {
this.spatialValues = new double[4];
this.spatialValues[0] = spatialValues[0];
this.spatialValues[1] = spatialValues[1];
this.spatialValues[2] = spatialValues[2];
this.spatialValues[3] = spatialValues[3];
} else {
this.spatialValues = null;
}
}
示例2: equals
import com.sun.voip.MixDataSource; //导入依赖的package包/类
public boolean equals(MixDataSource mixDataSource,
double[] spatialValues) {
if (this.mixDataSource != mixDataSource) {
return false;
}
if (this.spatialValues[3] == 0 && spatialValues[3] == 0) {
return true;
}
return this.spatialValues[0] == spatialValues[0] &&
this.spatialValues[1] == spatialValues[1] &&
this.spatialValues[2] == spatialValues[2] &&
this.spatialValues[3] == spatialValues[3];
}
示例3: addMix
import com.sun.voip.MixDataSource; //导入依赖的package包/类
public void addMix(MixDescriptor mixDescriptor) {
MixDataSource mixDataSource = mixDescriptor.getMixDataSource();
if (mixDataSource instanceof WhisperGroup) {
WhisperGroup wg = (WhisperGroup) mixDataSource;
if (wg.hasCommonMix() == false) {
if (Logger.logLevel >= Logger.LOG_INFO) {
Logger.println("No common mix, not adding " + wg);
}
return;
}
}
MixDescriptor md = findMixDescriptor(mixDataSource);
if (md != null) {
removeMix(md);
}
mixDescriptors.add(mixDescriptor);
setUseFastMix();
}
示例4: findMixDescriptor
import com.sun.voip.MixDataSource; //导入依赖的package包/类
public MixDescriptor findMixDescriptor(MixDataSource mixDataSource) {
for (int i = 0; i < mixDescriptors.size(); i++) {
MixDescriptor mixDescriptor = (MixDescriptor) mixDescriptors.get(i);
if (mixDescriptor.getMixDataSource() == mixDataSource) {
return mixDescriptor;
}
}
if (forcePrivateMix) {
double[] volume = new double[4];
volume[0] = .5D;
volume[1] = .5D;
volume[2] = .5D;
volume[3] = .5D;
return new MixDescriptor(mixDataSource, 1.0, volume);
}
return null;
}
示例5: MixDescriptor
import com.sun.voip.MixDataSource; //导入依赖的package包/类
public MixDescriptor(MixDataSource mixDataSource, double attenuation,
double[] spatialValues) {
this.mixDataSource = mixDataSource;
this.attenuation = attenuation;
if (spatialValues != null) {
this.spatialValues = new double[4];
this.spatialValues[0] = spatialValues[0];
this.spatialValues[1] = spatialValues[1];
this.spatialValues[2] = spatialValues[2];
this.spatialValues[3] = spatialValues[3];
} else {
this.spatialValues = null;
}
}
示例6: equals
import com.sun.voip.MixDataSource; //导入依赖的package包/类
public boolean equals(MixDataSource mixDataSource,
double[] spatialValues) {
if (this.mixDataSource != mixDataSource) {
return false;
}
if (this.spatialValues[3] == 0 && spatialValues[3] == 0) {
return true;
}
return this.spatialValues[0] == spatialValues[0] &&
this.spatialValues[1] == spatialValues[1] &&
this.spatialValues[2] == spatialValues[2] &&
this.spatialValues[3] == spatialValues[3];
}
示例7: addMix
import com.sun.voip.MixDataSource; //导入依赖的package包/类
public void addMix(MixDescriptor mixDescriptor) {
MixDataSource mixDataSource = mixDescriptor.getMixDataSource();
if (mixDataSource instanceof WhisperGroup) {
WhisperGroup wg = (WhisperGroup) mixDataSource;
if (wg.hasCommonMix() == false) {
if (Logger.logLevel >= Logger.LOG_INFO) {
Logger.println("No common mix, not adding " + wg);
}
return;
}
}
MixDescriptor md = findMixDescriptor(mixDataSource);
if (md != null) {
removeMix(md);
}
mixDescriptors.add(mixDescriptor);
setUseFastMix();
}
示例8: removeMix
import com.sun.voip.MixDataSource; //导入依赖的package包/类
public void removeMix(MixDataSource mixDataSource) {
MixDescriptor mixDescriptor = findMixDescriptor(mixDataSource);
if (mixDescriptor == null) {
if (Logger.logLevel >= Logger.LOG_MOREINFO) {
Logger.println("Didn't find MixDescriptor for "
+ mixDataSource);
}
return;
}
removeMix(mixDescriptor);
}
示例9: setPrivateMix
import com.sun.voip.MixDataSource; //导入依赖的package包/类
public MixDescriptor setPrivateMix(MixDataSource mixDataSource,
double[] spatialValues) {
MixDescriptor mixDescriptor;
mixDescriptor = findMixDescriptor(mixDataSource);
if (Logger.logLevel >= Logger.LOG_MOREINFO) {
Logger.println("Private mix " + mixDescriptor);
}
if (mixDescriptor == null) {
mixDescriptor = new MixDescriptor(mixDataSource, 1.0,
spatialValues);
mixDescriptors.add(mixDescriptor);
Logger.println("Call " + member
+ " creating new private mix for " + mixDataSource + " "
+ mixDescriptor + " vol " + spatialValues[3]);
} else {
if (mixDescriptor.equals(mixDataSource, spatialValues)) {
return null; // same as before
}
mixDescriptor.setSpatialValues(spatialValues);
}
if (Logger.logLevel >= Logger.LOG_MOREINFO) {
Logger.println("MixManager: Setting private mix "
+ mixDescriptor);
}
setUseFastMix();
return mixDescriptor;
}
示例10: findMixDescriptor
import com.sun.voip.MixDataSource; //导入依赖的package包/类
public MixDescriptor findMixDescriptor(ConferenceMember member) {
synchronized (mixManager) {
MixDescriptor mixDescriptor = (MixDescriptor)
mixManager.findMixDescriptor((MixDataSource)
member.getMemberReceiver());
return mixDescriptor;
}
}
示例11: removeMix
import com.sun.voip.MixDataSource; //导入依赖的package包/类
public void removeMix(MixDataSource mixDataSource) {
MixDescriptor mixDescriptor = findMixDescriptor(mixDataSource);
if (mixDescriptor == null) {
if (Logger.logLevel >= Logger.LOG_MOREINFO) {
Logger.println("Didn't find MixDescriptor for "
+ mixDataSource);
}
return;
}
removeMix(mixDescriptor);
}
示例12: setPrivateMix
import com.sun.voip.MixDataSource; //导入依赖的package包/类
public MixDescriptor setPrivateMix(MixDataSource mixDataSource,
double[] spatialValues) {
MixDescriptor mixDescriptor;
mixDescriptor = findMixDescriptor(mixDataSource);
if (Logger.logLevel >= Logger.LOG_MOREINFO) {
Logger.println("Private mix " + mixDescriptor);
}
if (mixDescriptor == null) {
mixDescriptor = new MixDescriptor(mixDataSource, 1.0,
spatialValues);
mixDescriptors.add(mixDescriptor);
Logger.println("Call " + member
+ " creating new private mix for " + mixDataSource + " "
+ mixDescriptor + " vol " + spatialValues[3]);
} else {
if (mixDescriptor.equals(mixDataSource, spatialValues)) {
return null; // same as before
}
mixDescriptor.setSpatialValues(spatialValues);
}
if (Logger.logLevel >= Logger.LOG_MOREINFO) {
Logger.println("MixManager: Setting private mix "
+ mixDescriptor);
}
setUseFastMix();
return mixDescriptor;
}
示例13: findMixDescriptor
import com.sun.voip.MixDataSource; //导入依赖的package包/类
public MixDescriptor findMixDescriptor(ConferenceMember member) {
synchronized (mixManager) {
MixDescriptor mixDescriptor = (MixDescriptor)
mixManager.findMixDescriptor((MixDataSource)
member.getMemberReceiver());
return mixDescriptor;
}
}
示例14: setMixDataSource
import com.sun.voip.MixDataSource; //导入依赖的package包/类
public void setMixDataSource(MixDataSource mixDataSource) {
this.mixDataSource = mixDataSource;
}
示例15: getMixDataSource
import com.sun.voip.MixDataSource; //导入依赖的package包/类
public MixDataSource getMixDataSource() {
return mixDataSource;
}