the bus's device as a product composes it: shared memory streams, so another process attaches to this device's rings by name
More...
|
| struct stream * | align (struct stream *sync_reference) |
| | the given stream where it may be the sync reference, else the first one that may - what a stored reference is aligned to when the desc changed under it
|
| uint32_t | align (uint32_t sync_reference) const |
| void | attach (channel_t **io[dx::stream::direction::directions][2], const std::vector< bool >(&channel_map)[2]) |
| void | conclude () noexcept override |
| | ends every group's session before the device's resources go; the start counts stay with their holders
|
| uint32_t | enumerate (const format &format=any) const |
| | enumerate typified pins
|
| void | exception (const dx::exception &exception, bool filtered=false) const noexcept override |
| | notification exception handler
|
| struct stream * | find (const decltype(stream::target.idx())&target) |
| struct stream * | find (const format &format=any, enum direction::direction direction=direction::any) |
| struct stream * | find (const target_t &target) |
| struct stream * | find (uint32_t &pin, const format &format=any, enum direction::direction direction=direction::any) |
| | finds and returns the stream description and pin idx into this stream
|
| 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
|
| void | info (std::ostream &os) noexcept override |
| | log object class information
|
| bool | operator== (const desc &desc) const |
| virtual device & | operator>> (std::ostream &) const |
| | the device's own diagnostics, beyond dx::object::info
|
| group_t & | operator[] (const typename desc::stream::desc &stream) |
| | the stream's group, created on first use
|
| group< device< desc, dx::preference, dx::stream::shared::stream, group > > & | operator[] (const typename desc::stream::desc &stream) |
| | the stream's group, created on first use
|
| _device & | reset () |
| virtual void | sleep () |
| | notify system will sleep stub
|
| virtual std::pair< source_t &, bool > | source (const struct desc::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
|
| virtual std::pair< source_t &, bool > | source (const struct desc::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
|
| virtual std::string | string (uint8_t) const |
| uint32_t | sync_reference (struct stream *sync_reference) |
| struct stream * | sync_reference (uint32_t sync_reference) |
| | the n-th stream qualifying as sync reference, and the twin below the index of a given one - the two directions of the preference's value
|
| bool | try_conclude () noexcept |
| | atomically conclude()s if currently launched; returns whether this call did it
|
| bool | try_launch () |
| | atomically launch()es if not already launched; returns whether this call did it
|
| void | wake () override |
|
| dx::stream::bus::bus | bus {} |
| | the bus this device hangs on
|
| promoted< typename super::client_map > | clients |
| dx::shared::guard< std::map< abstract::event *, dx::stream::clock::consumer > > | clock |
| | event -> its own iosize and sample counter
|
| uint32_t | clocks {} |
| promoted< uint32_t >::preference< decltype(super::preference)> | clocksource |
| promoted< desc >::template preference< dx::preference, typename desc::value_t > | desc |
| bool | dflt {} |
| | can be selected as default (OS audio) device
|
| dx::driver< decltype(id), dx::preference > & | driver |
| bool | editable {} |
| | can be edited
|
| struct dx::stream::desc::firmware | firmware |
| std::map< decltype(desc::stream::group), group< device< desc, dx::preference, dx::stream::shared::stream, group > > > | group |
| | 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
|
| bool | hidden {} |
| | hide device
|
| struct { | |
| dx::shared::guard< std::map< abstract::event *, dx::stream::clock::consumer > > clock | |
| | event -> its own iosize and sample counter More...
|
| uint32_t iosize | |
| | staging value for registration paths without their own iosize argument (macOS CF property bridge) More...
|
| } | hw |
| promoted< std::string >::preference< decltype(super::preference)> | icon |
| const std::string | id |
| promoted< uint32_t >::preference< decltype(super::preference)> | iosize |
| uint32_t | iosize |
| | staging value for registration paths without their own iosize argument (macOS CF property bridge)
|
| std::atomic< bool > | launched |
| struct dx::stream::desc::name_id | model |
| dx::stream::device::monitor | monitor |
| bool | persistence {} |
| | device has capability to store persistent settings (i.e. sample rate; clock source; etc.)
|
| dx::preference | preference |
| std::string | puid |
| | persistent UID - system unique - could change with location
|
| std::string | puuid |
| | persistent universal UID - universally unique ID (i.e. serial number)
|
| promoted< uint32_t >::preference< decltype(super::preference)> | samplerate |
| std::map< decltype(desc::stream::target.idx()), source_t > | sources |
| direction::direction | start_stop_order {direction::any} |
| struct dx::stream::desc::stream | stream [max_streams] |
| uint32_t | streams {} |
| | number of streams
|
| promoted< structdesc_t::stream * >::template preference< decltype(super::preference), uint32_t > | sync_reference |
| struct dx::stream::desc::name_id | vendor |
| dx::stream::device::monitor | version |
template<typename
desc_t = desc, typename preference_t = dx::preference, template< typename ... > typename stream_t = dx::stream::shared::stream, template< typename ... > typename group_t = group>
class dx::virtuel::stream::device< desc_t, preference_t, stream_t, group_t >
the bus's device as a product composes it: shared memory streams, so another process attaches to this device's rings by name
template<typename target_t = void_struct, int max_streams = 2, int max_pins = 1, int max_clock_settings = 1, int max_clocks = 1, int max_configurations = 1, int max_sources = 1>
| struct stream * dx::stream::desc< target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources >::align |
( |
struct stream * | sync_reference | ) |
|
|
inlineinherited |
the given stream where it may be the sync reference, else the first one that may - what a stored reference is aligned to when the desc changed under it
template<typename target_t = void_struct, int max_streams = 2, int max_pins = 1, int max_clock_settings = 1, int max_clocks = 1, int max_configurations = 1, int max_sources = 1>
finds and returns the stream description and pin idx into this stream
- Returns
- stream description of indexed pin, pin idx will be altered on return!
- Parameters
-
| pin | in: global pin index, out: pin index into returned stream description |
| format | search stream format filter |
| direction | search stream direction filter |
template<typename target_t = void_struct, int max_streams = 2, int max_pins = 1, int max_clock_settings = 1, int max_clocks = 1, int max_configurations = 1, int max_sources = 1>
the n-th stream qualifying as sync reference, and the twin below the index of a given one - the two directions of the preference's value
template<typename target_t = void_struct, int max_streams = 2, int max_pins = 1, int max_clock_settings = 1, int max_clocks = 1, int max_configurations = 1, int max_sources = 1>
| uint32_t dx::stream::desc< target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources >::clocks {} |
|
inherited |
number of independent clocks [currenlty only single clock support]
template<typename target_t = void_struct, int max_streams = 2, int max_pins = 1, int max_clock_settings = 1, int max_clocks = 1, int max_configurations = 1, int max_sources = 1>
| bool dx::stream::desc< target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources >::dflt {} |
|
inherited |
can be selected as default (OS audio) device
template<typename target_t = void_struct, int max_streams = 2, int max_pins = 1, int max_clock_settings = 1, int max_clocks = 1, int max_configurations = 1, int max_sources = 1>
| bool dx::stream::desc< target_t, max_streams, max_pins, max_clock_settings, max_clocks, max_configurations, max_sources >::persistence {} |
|
inherited |
device has capability to store persistent settings (i.e. sample rate; clock source; etc.)