MCPcopy Create free account
hub / github.com/audacity/audacity / DeviceChangeHandler

Method DeviceChangeHandler

libraries/lib-audio-devices/DeviceChange.cpp:364–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362END_EVENT_TABLE()
363
364DeviceChangeHandler::DeviceChangeHandler()
365: wxEvtHandler()
366{
367 mTimer.SetOwner(this);
368 mListener = std::make_unique<DeviceChangeListener>();
369 mListener->SetHandler(this);
370 mListener->Enable(true);
371
372 // Subscribe to self!
373 mSubscription = this->Subscribe(*this, &DeviceChangeHandler::OnChange);
374}
375
376DeviceChangeHandler::~DeviceChangeHandler()
377{

Callers

nothing calls this directly

Calls 4

SetOwnerMethod · 0.80
SetHandlerMethod · 0.80
EnableMethod · 0.45
SubscribeMethod · 0.45

Tested by

no test coverage detected