|
dxd - dynax driver framework 3.0.0d222
cross platform open source driver development framework
|
CoreMIDI client device. More...
#include <dx_coremidi_device.h>
Public Types | |
| typedef desc | desc_t |
| typedef event | event_t |
| typedef std::conditional_t< std::is_void_v< void >, dx::stream::group< device >, void > | group_t |
| bus devices driving their groups' tick pass their own group type | |
| typedef promoted< uint32_t >::template preference< decltype(dx::device<::MIDIDeviceRef, cf::preference >::preference)> | source_t |
| typedef stream< device< desc, cf::preference, stream > > | stream_t |
| typedef desc | value_t |
Public Member Functions | |
| struct stream * | align (struct stream *sync_reference) |
| 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) |
| void | info (std::ostream &os) noexcept override |
| log object class information | |
| bool | operator== (const desc &desc) const |
| virtual device & | operator>> (std::ostream &) const |
| group_t & | operator[] (const typename desc::stream::desc &stream) |
| the stream's group, created on first use | |
| group_t & | operator[] (const typename desc::stream::desc &stream) |
| the stream's group, created on first use | |
| virtual _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 | |
| uint32_t | sync_reference (struct stream *sync_reference) |
| struct stream * | sync_reference (uint32_t sync_reference) |
| 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 |
Public Attributes | |
| dx::stream::bus::bus | bus {} |
| the bus this device hangs on | |
| ::MIDIClientRef | client |
| dx::shared::guard< std::map< abstract::event *, dx::stream::clock::consumer > > | clock |
| event -> its own iosize and sample counter | |
| uint32_t | clocks {} |
| number of independent clocks [currenlty only single clock support] | |
| promoted< uint32_t >::preference< decltype(super::preference)> | clocksource |
| bool | dflt {} |
| can be selected as default (OS audio) device | |
| dx::driver< decltype(id), cf::preference > & | driver |
| bool | editable {} |
| can be edited | |
| struct dx::stream::desc::firmware | firmware |
| std::map< decltype(desc::stream::group), group_t > | 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 id_t | 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.) | |
| cf::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 |
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 | |
| virtual void | launch () |
| launch notification: object mounted and ready to use. Called only through try_launch() - never call this directly from outside the class hierarchy. | |
CoreMIDI client device.
|
inherited |
|
inherited |
|
inherited |
bus devices driving their groups' tick pass their own group type
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineoverridenoexceptinherited |
ends every group's session before the device's resources go; the start counts stay with their holders
|
inlineinherited |
enumerate typified pins
|
inlineoverridenoexceptinherited |
notification exception handler
|
inlineinherited |
|
inlineinherited |
| format | search stream format filter |
| direction | search stream direction filter |
|
inlineinherited |
|
inlineinherited |
finds and returns the stream description and pin idx into this stream
| pin | in: global pin index, out: pin index into returned stream description |
| format | search stream format filter |
| direction | search stream direction filter |
|
inlinevirtualinherited |
|
inlineprotectedvirtualinherited |
operator[](): a group just came into existence, a host wires its per-group transports here
|
inlinevirtualnoexceptinherited |
|
inlinevirtualinherited |
|
inlineoverridevirtualnoexceptinherited |
log object class information
Reimplemented from dx::object.
|
inlineprotectedvirtualinherited |
launch notification: object mounted and ready to use. Called only through try_launch() - never call this directly from outside the class hierarchy.
|
inlineinherited |
|
inlinevirtualinherited |
|
inlineinherited |
the stream's group, created on first use
|
inlineinherited |
the stream's group, created on first use
|
inlinevirtualinherited |
|
inlinevirtualinherited |
notify system will sleep stub
|
inlinevirtualinherited |
the stream's source selector, created on first use: the preference by stream target, the value an index into the stream's sources
|
inlinevirtualinherited |
the stream's source selector, created on first use: the preference by stream target, the value an index into the stream's sources
|
inlineinherited |
|
inlineinherited |
|
inlinenoexceptinherited |
atomically conclude()s if currently launched; returns whether this call did it
|
inlineinherited |
atomically launch()es if not already launched; returns whether this call did it
|
inlineoverrideinherited |
|
inherited |
the bus this device hangs on
|
inherited |
|
inherited |
event -> its own iosize and sample counter
|
inherited |
number of independent clocks [currenlty only single clock support]
|
inherited |
|
inherited |
can be selected as default (OS audio) device
|
inherited |
|
inherited |
can be edited
|
inherited |
|
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
|
inherited |
hide device
|
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::device<::MIDIDeviceRef, cf::preference >, desc, stream< device< desc, cf::preference, stream > >, void >::hw |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
staging value for registration paths without their own iosize argument (macOS CF property bridge)
|
inherited |
|
inherited |
|
inherited |
|
inherited |
device has capability to store persistent settings (i.e. sample rate; clock source; etc.)
|
inherited |
|
inherited |
persistent UID - system unique - could change with location
|
inherited |
persistent universal UID - universally unique ID (i.e. serial number)
|
inherited |
|
inherited |
source selectors by stream target: a stream with sources gets its own on first use
|
inherited |
|
inherited |
|
inherited |
number of streams
|
inherited |
|
inherited |
|
inherited |
| (c) copyright 2009 dynamic acoustics e.U. | generated on |