Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::audio::DeviceSelection Struct Reference

Persisted audio-device selection. More...

#include <audio_device_manager.hpp>

Public Attributes

std::string output_device
std::string input_device
double sample_rate = 0.0
 0 = use default
int buffer_size = 0
 0 = use default
uint64_t output_channel_mask = 0
uint64_t input_channel_mask = 0

Detailed Description

Persisted audio-device selection.

output_channel_mask / input_channel_mask are 64-bit bitmasks over the device's natural channel order. Bit i set means channel i is enabled. Channels 64+ collapse onto bit 63 conservatively (Pulp targets stereo / multichannel-up-to-32, so this is fine for every shipping audio interface). Zero mask + non-zero channel count in DeviceConfig means "use the first N channels".

Member Data Documentation

◆ buffer_size

int pulp::audio::DeviceSelection::buffer_size = 0

0 = use default

◆ input_channel_mask

uint64_t pulp::audio::DeviceSelection::input_channel_mask = 0

◆ input_device

std::string pulp::audio::DeviceSelection::input_device

◆ output_channel_mask

uint64_t pulp::audio::DeviceSelection::output_channel_mask = 0

◆ output_device

std::string pulp::audio::DeviceSelection::output_device

◆ sample_rate

double pulp::audio::DeviceSelection::sample_rate = 0.0

0 = use default


The documentation for this struct was generated from the following file: