Exemplo n.º 1
0
whitenoise_i::whitenoise_i(const char *uuid, const char *label) :
    whitenoise_base(uuid, label),
    lastTime(0)
{
	std::string s = "sri";
	setPropertyChangeListener(s, this, &whitenoise_i::newSri);
}
void TestCppsoftpkgDeps::testMemberCallbacks (CF::Properties& testValues)
{
    // Set up notification to call `this->propertyChanged()` when any of the
    // test values are changed via `configure()`.
    LOG_DEBUG(TestCppsoftpkgDeps, "Setting up " << testValues.length() << " member function callback(s)");
    for (CORBA::ULong ii = 0; ii < testValues.length(); ++ii) {
        const std::string id = static_cast<const char*>(testValues[ii].id);
        setPropertyChangeListener(id, this, &TestCppsoftpkgDeps::propertyChanged);
    }
    
    testCallbacks(testValues);
}
Exemplo n.º 3
0
void AudioTestSource_i::initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException)
{
	AudioTestSource_base::initialize();

	pipeline = 0;
	bus = 0;

	// Tie SCA properties to GStreamer properties
	setPropertyChangeListener(static_cast<std::string>("waveform"), this, &AudioTestSource_i::_set_gst_src_param);
	setPropertyChangeListener(static_cast<std::string>("frequency"), this, &AudioTestSource_i::_set_gst_src_param);
	setPropertyChangeListener(static_cast<std::string>("volume"), this, &AudioTestSource_i::_set_gst_src_param);
	setPropertyChangeListener(static_cast<std::string>("is-live"), this, &AudioTestSource_i::_set_gst_src_param);
	setPropertyChangeListener(static_cast<std::string>("samplesperpacket"), this, &AudioTestSource_i::_set_gst_src_param);

	setPropertyChangeListener(static_cast<std::string>("resample-filter-length"), this, &AudioTestSource_i::_set_gst_src_param);
	setPropertyChangeListener(static_cast<std::string>("resample-quality"), this, &AudioTestSource_i::_set_gst_src_param);
}
vector_to_streams_ss_2o_i::vector_to_streams_ss_2o_i(const char *uuid, const char *label) :
vector_to_streams_ss_2o_base(uuid, label)
{
    setPropertyChangeListener ("stream_id_map" , this, &vector_to_streams_ss_2o_i::streamIdChanged );
}
pfb_clock_sync_ccf_4o_i::pfb_clock_sync_ccf_4o_i(const char *uuid, const char *label) :
pfb_clock_sync_ccf_4o_base(uuid, label)
{
    setPropertyChangeListener ("stream_id_map" , this, &pfb_clock_sync_ccf_4o_i::streamIdChanged );
}
stream_to_streams_bb_4o_i::stream_to_streams_bb_4o_i(const char *uuid, const char *label) :
stream_to_streams_bb_4o_base(uuid, label)
{
    setPropertyChangeListener ("stream_id_map" , this, &stream_to_streams_bb_4o_i::streamIdChanged );
}
deinterleave_ii_3o_i::deinterleave_ii_3o_i(const char *uuid, const char *label) :
deinterleave_ii_3o_base(uuid, label)
{
    setPropertyChangeListener ("stream_id_map" , this, &deinterleave_ii_3o_i::streamIdChanged );
}
argmax_ss_1i_i::argmax_ss_1i_i(const char *uuid, const char *label) :
argmax_ss_1i_base(uuid, label)
{
    setPropertyChangeListener("stream_id_map", this, &argmax_ss_1i_i::streamIdChanged);
}