|
dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
|
WASAPI client streaming device interface class. More...
#include <dx_wasapi_client_device.h>
Classes | |
| struct | property |
| beside the generic settings: the share mode this device's endpoints are opened in, which decides whether a rate other than the engine's mix format is reachable at all More... | |
Public Types | |
| typedef desc_t | desc_t |
| typedef event | event_t |
| typedef std::conditional_t<std::is_void_v<group_t>, dx::stream::group<device>, group_t> | group_t |
| bus devices driving their groups' tick pass their own group type | |
| typedef promoted<uint32_t>::template preference<decltype(super_device_t::preference)> | source_t |
| typedef dx::stream::control<dx::device<std::string, preference_t>> | super_device_t |
| the device this streaming device sits on: its own operations of a name this class takes for itself (a USB device's configuration()) are reached through it | |
Public Member Functions | |
| _device(decltype(super::driver)& driver, decltype(super::id)& id) | |
| the WASAPI stream device class constructor | |
| virtual desc_t::configuration | align(const typename desc_t::configuration& value, const typename desc_t::configuration &) |
| a configuration the device can run: every stream's index within its configurations, one past them the stream off - a bus device narrows it to what its bus carries, the streams value leaves as current has them standing | |
| void | attach(void** io[dx::stream::direction::directions][2], const std::vector<bool>(& channel_map)[2], const dx::stream::format(& format)[2]) |
| the consumer's planar channel buffers in the format each direction's buffers carry | |
| virtual uint64_t | budget(const typename desc_t::configuration &) |
| the periodic bus time the configuration takes, in ns - a bus device with a periodic budget states it | |
| void | conclude() noexcept override |
| ends every group's session before the device's resources go; the start counts stay with their holders | |
| void | exception(const dx::exception& exception, bool filtered= false) const noexcept override |
| virtual uint64_t | frame() const |
| virtual bool | hw_clock() const noexcept |
| virtual void | hw_clock(abstract::event* hw_clock, uint32_t iosize) |
| registers a consumer with the device's clock: it is signalled every iosize samples of the clock's own advance. A bus whose driver owns the clock hands the registration on instead | |
| std::shared_ptr<stream_t> | open(const typename desc_t::stream::desc& descdesc, bool client= false) |
| the desc's stream: the registered one, else created, registered and launched - a host's client takes a data driven stream alone, its ring has one writer and one reader | |
| const struct desc_t::stream::config& | operator ()(const struct desc_t::stream& stream) |
| the stream configuration the device runs the stream in: the stream is one of the desc's | |
| group_t& | operator [](const typename desc_t::stream::desc& stream) |
| the stream's group, created on first use | |
| _device& | reset() |
| void | setting(dx::stream::setting setting, uint32_t index, f_t&& f) |
| the setting a host keeps for its clients handed to f as its promoted: the transport settings the sync reference's group's, the source the one of the stream whose target index is index | |
| virtual std::pair<source_t &, bool> | source(const struct desc_t::stream& stream) |
| the stream's source selector, created on first use: the preference by stream target, the value an index into the stream's sources | |
| std::string | string(uint8_t) |
| void | wake() override |
| ~_device() override | |
Public Attributes | |
| promoted<uint32_t>::preference<decltype(super::preference)> | clocksource |
| promoted<typenamedesc_t::configuration>::template preference<decltype(super::preference)> | configuration |
| the device's configuration: per stream the stream configuration it runs, the richest by default - a bus device narrows it to what its bus carries (align()), and it stands while a group is started | |
| std::map<decltype(desc_t::stream::group), group_t> | group |
| struct dx::stream::device:: { ... } | hw |
| promoted<std::string>::preference<decltype(super::preference)> | icon |
| promoted<uint32_t>::preference<decltype(super::preference)> | iosize |
| dx::stream::device::monitor | monitor |
| promoted<uint32_t>::preference<decltype(super::preference)> | samplerate |
| std::map<decltype(desc_t::stream::target.idx()), source_t> | sources |
| promoted<uint32_t> | start{0} |
| promoted<bool> | started{false} |
| promoted<structdesc_t::stream *>::template preference<decltype(super::preference), uint32_t> | sync_reference |
| dx::stream::device::monitor | version |
Static Public Attributes | |
| static constexpr bool | hosted |
| the transport's settings belong to another process' device: a hosted device mirrors them through its chains, it keeps no store of them | |
Protected Member Functions | |
| virtual void | grouped(group_t &) |
| operator[](): a group just came into existence, a host wires its per-group transports here | |
Protected Attributes | |
| std::function<void()> | flush_hook= []{} |
| std::function<void()> | halt_hook= []{} |
| std::function<void()> | run_hook= []{} |
| decltype(super::samplerate) ::chain | samplerate_server |
| exclusive: every stream's client is recreated at the aligned rate, paused across it; shared: the engine's mix format rate is the only one | |
WASAPI client streaming device interface class.
One audio adapter: its desc is synthesized from its active endpoints, one stream with one pin, one clock and one group per endpoint. The share mode is the device's property: shared streams in the audio engine's mix format, exclusive streams in the first sample format the endpoint takes, at every standard rate it takes it.
| In | case of an error returned by the underlaying API the device class throws a dx::exception. |
|
inherited |
|
inherited |
|
inherited |
bus devices driving their groups' tick pass their own group type
|
inherited |
|
inherited |
the device this streaming device sits on: its own operations of a name this class takes for itself (a USB device's configuration()) are reached through it
|
inline |
the WASAPI stream device class constructor
< the endpoints follow the first one's rate; a shared mode engine converts its own mix format to it
< only a rate every endpoint takes can be the domain's - in shared mode the engine converts instead, so the reference's rate stands
|
inlineoverride |
|
inlinevirtualinherited |
a configuration the device can run: every stream's index within its configurations, one past them the stream off - a bus device narrows it to what its bus carries, the streams value leaves as current has them standing
|
inlineinherited |
the consumer's planar channel buffers in the format each direction's buffers carry
|
inlinevirtualinherited |
the periodic bus time the configuration takes, in ns - a bus device with a periodic budget states it
|
inlineoverridenoexceptinherited |
ends every group's session before the device's resources go; the start counts stay with their holders
|
inlineoverridenoexcept |
|
inlinevirtual |
|
inlineprotectedvirtualinherited |
operator[](): a group just came into existence, a host wires its per-group transports here
|
inlinevirtualnoexceptinherited |
|
inlinevirtualinherited |
registers a consumer with the device's clock: it is signalled every iosize samples of the clock's own advance. A bus whose driver owns the clock hands the registration on instead
|
inlineinherited |
the desc's stream: the registered one, else created, registered and launched - a host's client takes a data driven stream alone, its ring has one writer and one reader
|
inlineinherited |
the stream configuration the device runs the stream in: the stream is one of the desc's
|
inlineinherited |
the stream's group, created on first use
|
inline |
|
inlineinherited |
the setting a host keeps for its clients handed to f as its promoted: the transport settings the sync reference's group's, the source the one of the stream whose target index is index
|
inlinevirtualinherited |
the stream's source selector, created on first use: the preference by stream target, the value an index into the stream's sources
|
inline |
|
inlineoverrideinherited |
|
inherited |
|
inherited |
the device's configuration: per stream the stream configuration it runs, the richest by default - a bus device narrows it to what its bus carries (align()), and it stands while a group is started
|
protectedinherited |
|
inherited |
streaming groups by desc::stream::group id: every stream of this device is registered with its group - behind the settings its groups listen to, so they go first
|
protectedinherited |
|
staticconstexprinherited |
the transport's settings belong to another process' device: a hosted device mirrors them through its chains, it keeps no store of them
| struct { ... } dx::stream::device<dx::stream::control<dx::device<std::string, preference_t>>, desc_t, stream_t, group_t>::hw |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
inherited |
|
protected |
exclusive: every stream's client is recreated at the aligned rate, paused across it; shared: the engine's mix format rate is the only one
|
inherited |
source selectors by stream target: a stream with sources gets its own on first use
|
inherited |
|
inherited |
|
inherited |
|
inherited |