当前位置: 首页>>代码示例>>Java>>正文


Java MixDataSource类代码示例

本文整理汇总了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;
}
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:18,代码来源:MixDescriptor.java

示例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];
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:17,代码来源:MixDescriptor.java

示例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();
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:24,代码来源:MixManager.java

示例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;
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:23,代码来源:MixManager.java

示例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;
}
   }
 
开发者ID:idwanglu2010,项目名称:openfire,代码行数:18,代码来源:MixDescriptor.java

示例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];
   }
 
开发者ID:idwanglu2010,项目名称:openfire,代码行数:17,代码来源:MixDescriptor.java

示例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();
   }
 
开发者ID:idwanglu2010,项目名称:openfire,代码行数:24,代码来源:MixManager.java

示例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);
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:14,代码来源:MixManager.java

示例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;
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:37,代码来源:MixManager.java

示例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;
}
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:10,代码来源:ConferenceMember.java

示例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);
   }
 
开发者ID:idwanglu2010,项目名称:openfire,代码行数:14,代码来源:MixManager.java

示例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;
   }
 
开发者ID:idwanglu2010,项目名称:openfire,代码行数:37,代码来源:MixManager.java

示例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;
}
   }
 
开发者ID:idwanglu2010,项目名称:openfire,代码行数:10,代码来源:ConferenceMember.java

示例14: setMixDataSource

import com.sun.voip.MixDataSource; //导入依赖的package包/类
public void setMixDataSource(MixDataSource mixDataSource) {
this.mixDataSource = mixDataSource;
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:4,代码来源:MixDescriptor.java

示例15: getMixDataSource

import com.sun.voip.MixDataSource; //导入依赖的package包/类
public MixDataSource getMixDataSource() {
return mixDataSource;
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:4,代码来源:MixDescriptor.java


注:本文中的com.sun.voip.MixDataSource类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。