本文整理汇总了Java中nu.nethome.util.ps.impl.SimpleFlankDetector类的典型用法代码示例。如果您正苦于以下问题:Java SimpleFlankDetector类的具体用法?Java SimpleFlankDetector怎么用?Java SimpleFlankDetector使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SimpleFlankDetector类属于nu.nethome.util.ps.impl包,在下文中一共展示了SimpleFlankDetector类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: JirFileTestPlayer
import nu.nethome.util.ps.impl.SimpleFlankDetector; //导入依赖的package包/类
public JirFileTestPlayer(int decoders) {
// Create the Protocol-Decoders and add them to the decoder group
if ((decoders & SIRC_DECODER) != 0) m_ProtocolDecoders.add(new SIRCDecoder());
if ((decoders & RC6_DECODER) != 0) m_ProtocolDecoders.add(new RC6Decoder());
if ((decoders & RC5_DECODER) != 0) m_ProtocolDecoders.add(new RC5Decoder());
if ((decoders & JVC_DECODER) != 0) m_ProtocolDecoders.add(new JVCDecoder());
if ((decoders & Viasat_DECODER) != 0) m_ProtocolDecoders.add(new ViasatDecoder());
if ((decoders & Pioneer_DECODER) != 0) m_ProtocolDecoders.add(new PioneerDecoder());
if ((decoders & HK_DECODER) != 0) m_ProtocolDecoders.add(new HKDecoder());
if ((decoders & UPM_DECODER) != 0) m_ProtocolDecoders.add(new UPMDecoder());
if ((decoders & Nexa_DECODER) != 0) m_ProtocolDecoders.add(new NexaDecoder());
if ((decoders & NexaL_DECODER) != 0) m_ProtocolDecoders.add(new NexaLDecoder());
if ((decoders & Deltronic_DECODER) != 0) m_ProtocolDecoders.add(new DeltronicDecoder());
if ((decoders & X10_DECODER) != 0) m_ProtocolDecoders.add(new X10Decoder());
if ((decoders & Waveman_DECODER) != 0) m_ProtocolDecoders.add(new WavemanDecoder());
if ((decoders & NexaFire_DECODER) != 0) m_ProtocolDecoders.add(new NexaFireDecoder());
if ((decoders & OREGON_DECODER) != 0) m_ProtocolDecoders.add(new OregonDecoder());
if ((decoders & FINE_OFFSET_DECODER) != 0) m_ProtocolDecoders.add(new FineOffsetDecoder());
if ((decoders & ROLLERTROL_DECODER) != 0) m_ProtocolDecoders.add(new RollerTrolDecoder());
if ((decoders & ROLLERTROL_G_DECODER) != 0) m_ProtocolDecoders.add(new RollerTrolGDecoder());
if ((decoders & PROLOGUE_DECODER) != 0) m_ProtocolDecoders.add(new PrologueDecoder());
// Set the Sink - which is this class
m_ProtocolDecoders.setTarget(this);
// Create The Flank Detector and attach the decoders
m_FlankDetector = new SimpleFlankDetector();
m_FlankDetector.setProtocolDecoder(m_ProtocolDecoders);
// Create the FIR-Filter and attach to the samplers
m_Filter = new FIRFilter6000(m_FlankDetector);
m_FlankDetector.setSampleRate(44100);
}
示例2: AudioProtocolParser
import nu.nethome.util.ps.impl.SimpleFlankDetector; //导入依赖的package包/类
public AudioProtocolParser() {
// Create all the Protocol-Decoders
decoders.add(new SIRCDecoder());
decoders.add(new RC6Decoder());
decoders.add(new RC5Decoder());
decoders.add(new JVCDecoder());
decoders.add(new ViasatDecoder());
decoders.add(new PioneerDecoder());
decoders.add(new HKDecoder());
decoders.add(new UPMDecoder());
decoders.add(new NexaDecoder());
decoders.add(new NexaLDecoder());
decoders.add(new DeltronicDecoder());
decoders.add(new X10Decoder());
decoders.add(new ProntoDecoder());
decoders.add(new WavemanDecoder());
decoders.add(new RisingSunDecoder());
decoders.add(new NexaFireDecoder());
decoders.add(new ZhejiangDecoder());
StringBuilder allDecoderNames = new StringBuilder();
String separator = "";
for (ProtocolDecoder decoder : decoders.getAllDecoders()) {
decoder.setTarget(this);
if (!decoder.getInfo().getName().equals("Pronto")) {
allDecoderNames.append(separator);
allDecoderNames.append(decoder.getInfo().getName());
separator = ",";
} else {
decoders.setActive(decoder, false);
}
}
decoderNames = allDecoderNames.toString();
// Activate the selected ones
updateDecoderActivation();
// Create The Flank Detector and attach the decoders
flankDetector = new SimpleFlankDetector();
flankDetector.setProtocolDecoder(decoders);
// Create the FIR-Filter and attach to the samplers
filter = new FIRFilter6000(flankDetector);
// Create our sampler port and attach the Filter
audioSampler = new AudioProtocolPort(filter);
}