class DelayWatcherClient

Defined at line 20 of file ../../src/media/audio/services/common/delay_watcher_client.h

Public Methods

std::shared_ptr<DelayWatcherClient> Create (Args args)

static

Defined at line 12 of file ../../src/media/audio/services/common/delay_watcher_client.cc

std::optional<zx::duration> delay ()

Returns the current delay, or std::nullopt if the delay is unknown.

Defined at line 39 of file ../../src/media/audio/services/common/delay_watcher_client.h

void SetCallback (fit::function<void (std::optional<zx::duration>)> callback)

Sets a callback to invoke each time the delay changes. This is called immediately to report the

current delay, then again each time a new delay value is received from the server.

Defined at line 42 of file ../../src/media/audio/services/common/delay_watcher_client.cc

void Shutdown ()

Shuts down this client. The FIDL connection will be closed.

Defined at line 49 of file ../../src/media/audio/services/common/delay_watcher_client.cc

Records