Constructor
PwgAudioFormatnew
since: 0.1
Declaration [src]
PwgAudioFormat*
pwg_audio_format_new (
const char* sample_format,
unsigned int rate,
unsigned int channels,
unsigned int bytes_per_sample
)
Description [src]
Creates an immutable audio format descriptor.
Stability: Unstable
Available since: 0.1
Parameters
sample_format-
Type:
const char*PipeWire/SPA sample format name.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. rate-
Type:
unsigned intSample rate in Hz.
channels-
Type:
unsigned intChannel count.
bytes_per_sample-
Type:
unsigned intBytes per single-channel sample.
Return value
Type: PwgAudioFormat
A new audio format object.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |