Crate pulseaudio

Crate pulseaudio 

Source
Expand description

A pure Rust implementation of the PulseAudio protocol, suitable for writing servers and clients.

Modules§

protocol
An implementation of the PulseAudio IPC protocol.

Structs§

Client
A PulseAudio client.
PlaybackStream
A stream of audio data sent from the client to the server for playback in a sink.
RecordBuffer
A buffer for adapting a record stream in situations where an implementation of AsyncRead is required.
RecordStream
A stream of audio data sent from the server to the client, originating from a source.

Enums§

ClientError
An error encountered by a Client.

Traits§

AsPlaybackSource
A trait for converting a callback into an [AudioSource].
PlaybackSource
An audio source for a playback stream. At its core, this is just a callback that is driven by the server to generate samples.
RecordSink
An audio sink for a record stream. At its core, this is just a callback that is called whenever the server sends samples for the stream.

Functions§

cookie_path_from_env
Attempts to find the authentication cookie from the environment, checking the following locations in order:
socket_path_from_env
Attempts to determine the socket path from the runtime environment, checking the following locations in order:

Type Aliases§

Result
The result of a Client operation.