template <>
class Server
Defined at line 5492 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/natural_messaging.h
Public Methods
void CreateAudioRenderer (CreateAudioRendererRequest & request, CreateAudioRendererCompleter::Sync & completer)
Creates an AudioRenderer which outputs audio to the default device.
void CreateAudioCapturerWithConfiguration (CreateAudioCapturerWithConfigurationRequest & request, CreateAudioCapturerWithConfigurationCompleter::Sync & completer)
Creates an AudioCapturer according to the given requirements.
`pcm_stream_type` sets the stream type of the stream to be delivered.
It causes the source material to be reformatted/resampled if needed
in order to produce the requested stream type.
`usage` is used by Fuchsia to make decisions about user experience.
See `AudioCaptureUsage` for more details.
`configuration` must be initialized to a variant, or no capturer
can be created.
void CreateAudioCapturer (CreateAudioCapturerRequest & request, CreateAudioCapturerCompleter::Sync & completer)
Creates an AudioCapturer which either captures from the current default
audio input device, or loops-back from the current default audio output
device based on value passed for the loopback flag.
void Server ()
Defined at line 5495 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/natural_messaging.h
void SetRenderUsageGain (SetRenderUsageGainRequest & request, SetRenderUsageGainCompleter::Sync & completer)
Sets the gain for this render usage. By default, all render usages are set to Unity (0 db).
void SetRenderUsageGain2 (SetRenderUsageGain2Request & request, SetRenderUsageGain2Completer::Sync & completer)
Sets the gain for this render usage. By default, all render usages are set to Unity (0 db).
void SetCaptureUsageGain (SetCaptureUsageGainRequest & request, SetCaptureUsageGainCompleter::Sync & completer)
Sets gain for this capture usage. By default, all capture usages are set to Unity (0 db).
void SetCaptureUsageGain2 (SetCaptureUsageGain2Request & request, SetCaptureUsageGain2Completer::Sync & completer)
Sets gain for this capture usage. By default, all capture usages are set to Unity (0 db).
void BindUsageVolumeControl (BindUsageVolumeControlRequest & request, BindUsageVolumeControlCompleter::Sync & completer)
Binds to a volume control protocol for the given usage.
void BindUsageVolumeControl2 (BindUsageVolumeControl2Request & request, BindUsageVolumeControl2Completer::Sync & completer)
Binds to a volume control protocol for the given usage.
void GetVolumeFromDb (GetVolumeFromDbRequest & request, GetVolumeFromDbCompleter::Sync & completer)
Queries the volume percentage [0, 1] that maps to a `gain_db` value for a particular
`usage`. This is the same mapping as used by the VolumeControl from
`BindUsageVolumeControl`.
void GetVolumeFromDb2 (GetVolumeFromDb2Request & request, GetVolumeFromDb2Completer::Sync & completer)
Queries the volume percentage [0, 1] that maps to a `gain_db` value for a particular
`usage`. This is the same mapping as used by the VolumeControl from
`BindUsageVolumeControl`.
void GetDbFromVolume (GetDbFromVolumeRequest & request, GetDbFromVolumeCompleter::Sync & completer)
Queries the decibel value that maps to a volume percentage [0, 1] for a particular `usage`.
This is the same mapping as used by the VolumeControl from `BindUsageVolumeControl`.
void GetDbFromVolume2 (GetDbFromVolume2Request & request, GetDbFromVolume2Completer::Sync & completer)
Queries the decibel value that maps to a volume percentage [0, 1] for a particular `usage`.
This is the same mapping as used by the VolumeControl from `BindUsageVolumeControl`.
void SetInteraction (SetInteractionRequest & request, SetInteractionCompleter::Sync & completer)
Sets how audio_core handles interactions of multiple active streams simultaneously. If
streams of Usage `active` are processing audio, and streams of Usage `affected` are as well,
the Behavior specified will be applied to the streams of Usage `affected`.
void SetInteraction2 (SetInteraction2Request & request, SetInteraction2Completer::Sync & completer)
Sets how audio_core handles interactions of multiple active streams simultaneously. If
streams of Usage `active` are processing audio, and streams of Usage `affected` are as well,
the Behavior specified will be applied to the streams of Usage `affected`.
void ResetInteractions (ResetInteractionsCompleter::Sync & completer)
Re-initializes the set of rules that are currently governing the interaction of streams in
audio_core. The default behavior is 'NONE'.
void LoadDefaults (LoadDefaultsCompleter::Sync & completer)
Re-loads the platform policy configuration. Falls back to a default config if the platform
does not provide a config.
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~Server ()
Defined at line 5496 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/natural_messaging.h