|
dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
|
a stream of a HAL device: the ring is the client's own, the latency the HAL's property of that direction More...
#include <dx_coreaudio_stream_device.h>
Public Types | |
| typedef struct device_t::desc::stream | desc |
| typedef event<user> | event_t |
Public Member Functions | |
| stream& | attach(void **[2], const std::vector<bool> &, direction::direction, const dx::stream::format &) |
| the pin passes its own direction: a stream shared by two pins carries none of its own | |
| bool | claim(direction::direction direction) |
| taken while there is none | |
| virtual bool | encoder(dx::stream::encoder::index::type, unsigned int, float) |
| void | exception(const class exception& exception, bool filtered= false) const noexcept override |
| void | flush() |
| virtual void | initialize() |
| void | launch() override |
| operator dx::circular*() const noexcept | |
| dx::circular* | operator ->() const noexcept |
| virtual os_result | status() noexcept |
| template<typename... args_t> | |
| stream(args_t&&... args) | |
| virtual bool | submit(dx::stream::encoder::index::type, unsigned int, uint8_t) |
| submit encoder stage to device return true if successfully submitted; if false is returned the encode state machine will not update the stage value (i.e. if the stage can't be submitted during streaming pause), given the chance to submit the stage at start(). | |
Public Attributes | |
| bool | anchored |
| origin is set: by the tick that first finds the ring ticking, reset by the run hook | |
| std::vector<void *> | buffers |
| one cycle's HAL buffers, a pointer each - sized at the session's start, never in the IOProc | |
| struct dx::stream::stream:: { ... } | cache |
| dx::stream::channel::control* | control |
| kernel streaming: the driver's buffer switch bookkeeping, set by attach() | |
| dx::circular::conversion | conversion{} |
| between the HAL's float buffers and the ring, resolved at the session's start | |
| event_t | data [direction::directions] |
| event signalising data arrival(in) or draining(out) | |
| dx::promoted<dx::stream::format> | format |
| the container this stream's ring runs: class and width its participants agreed on | |
| const decltype(desc::target.idx()) | id |
| promoted::property<uint32_t> | latency |
| int64_t | origin |
| the ring's index at the device's sample zero: a ticking group keeps every ring's cycle from its device time and this | |
| decltype(device_t::samplerate)& | samplerate |
| bool | ticking |
| the tick's own view of this stream's session: set by the run hook once the ring stands, cleared by the halt hook before the session ends - a plain flag, the tick must never block on a promoted's transition | |
| volatile int64_t | transport |
| std::mutex | writer |
| the ring's client writers one at a time: a stream's pins write one ring, each on its own port | |
Protected Member Functions | |
| virtual void | alloc(size_t size, bool free= true) |
| virtual void | free() noexcept |
| overrides may release further alloc()-acquired resources (request buffers, isoc pools, shared-memory attachments) alongside circular; called only from alloc()'s own self-cleanup or the destructor - never from halt()/stop(), so everything alloc() acquires stays live for the object's full lifetime | |
Protected Attributes | |
| dx::circular* | circular |
| allocated once by initialize()/alloc(); released only by free() | |
a stream of a HAL device: the ring is the client's own, the latency the HAL's property of that direction
|
inherited |
|
inherited |
|
inline |
|
inlineprotectedvirtualinherited |
|
inlineinherited |
the pin passes its own direction: a stream shared by two pins carries none of its own
|
inlineinherited |
taken while there is none
|
inlinevirtualinherited |
|
inlineoverridenoexceptinherited |
|
inlineinherited |
|
inlineprotectedvirtualnoexceptinherited |
|
inlinevirtualinherited |
< a shared ring takes the wider of its two directions
< this stream's own contribution: the frames its transport keeps ahead of/behind the ring
< a hosted device's ring is its host's (kernel, service, plugin) and attached as it stands - sizing it here would write the ring into a mapping of the host's making
< a fresh ring, zeroed by alloc(), takes its size here
|
inlineoverrideinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinevirtualnoexceptinherited |
|
inlinevirtualinherited |
submit encoder stage to device return true if successfully submitted; if false is returned the encode state machine will not update the stage value (i.e. if the stage can't be submitted during streaming pause), given the chance to submit the stage at start().
|
inherited |
origin is set: by the tick that first finds the ring ticking, reset by the run hook
| std::vector<void*> dx::coreaudio::stream::stream<device_t, circular_t>::buffers |
one cycle's HAL buffers, a pointer each - sized at the session's start, never in the IOProc
| struct { ... } dx::stream::stream<device_t, dx::circular, control<object<device_t>>, event<user>>::cache |
|
protectedinherited |
allocated once by initialize()/alloc(); released only by free()
|
inherited |
kernel streaming: the driver's buffer switch bookkeeping, set by attach()
| dx::circular::conversion dx::coreaudio::stream::stream<device_t, circular_t>::conversion{} |
between the HAL's float buffers and the ring, resolved at the session's start
|
inherited |
event signalising data arrival(in) or draining(out)
|
inherited |
the container this stream's ring runs: class and width its participants agreed on
A bus that negotiates it installs its own server; without one the request stands, unless the stream's configuration states its format: that one runs whatever is asked. The seed is the desc's own pin format, so a stream that nobody contradicts runs what it was declared with.
|
inherited |
| promoted::property<uint32_t> dx::coreaudio::stream::stream<device_t, circular_t>::latency |
|
inherited |
the ring's index at the device's sample zero: a ticking group keeps every ring's cycle from its device time and this
|
inherited |
|
inherited |
the tick's own view of this stream's session: set by the run hook once the ring stands, cleared by the halt hook before the session ends - a plain flag, the tick must never block on a promoted's transition
|
inherited |
the ring's one transport while a participant holds it, of the direction the desc declares: none again at its release and at the session's halt
|
inherited |
the ring's client writers one at a time: a stream's pins write one ring, each on its own port