dxd - dynax driver framework 2.6.0d179
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::coreaudio::server::device< pin_t > Class Template Reference

CoreAudio server streaming device. More...

#include <dx_coreaudio_server_device.h>

+ Inheritance diagram for dx::coreaudio::server::device< pin_t >:
+ Collaboration diagram for dx::coreaudio::server::device< pin_t >:

Public Member Functions

virtual void add_client (const ::AudioServerPlugInClientInfo *info) try
 
virtual void create_pins () try
 
 device (decltype(super::driver)&driver, decltype(super::id)&id)
 
 device (decltype(super::driver)&driver, decltype(super::id)&id, const typename super::desc_t &desc)
 
 dx_catchall_rethrow () virtual uint32_t property(target target
 generic device property handler
 
 dx_catchall_rethrow () void launch() override try
 
pin_t & pin (::AudioObjectID id)
 
pin_t & pin (target target)
 

Public Attributes

const ::AudioObjectPropertyAddress & address
 
const ::AudioObjectPropertyAddress void ::UInt32 bool cf::reference<::CFStringRef > clients
 
uint8_t idx = 0
 
std::deque< pin_t > pins
 
const ::AudioObjectPropertyAddress void * property
 
const ::AudioObjectPropertyAddress void ::UInt32 bool set
 
const ::AudioObjectPropertyAddress void ::UInt32 & size
 

Protected Attributes

std::atomic< int > io_started
 

Detailed Description

template<typename pin_t>
class dx::coreaudio::server::device< pin_t >

CoreAudio server streaming device.

In contrast to the hierarchical dx device tree design the device keeps a list of all pins and all streams to better reflect the CoreAudio architecture.

Constructor & Destructor Documentation

◆ device() [1/2]

template<typename pin_t >
dx::coreaudio::server::device< pin_t >::device ( decltype(super::driver)& driver,
decltype(super::id)& id )
inline
+ Here is the caller graph for this function:

◆ device() [2/2]

template<typename pin_t >
dx::coreaudio::server::device< pin_t >::device ( decltype(super::driver)& driver,
decltype(super::id)& id,
const typename super::desc_t & desc )
inline

Member Function Documentation

◆ add_client()

template<typename pin_t >
virtual void dx::coreaudio::server::device< pin_t >::add_client ( const ::AudioServerPlugInClientInfo * info)
inlinevirtual

◆ create_pins()

template<typename pin_t >
virtual void dx::coreaudio::server::device< pin_t >::create_pins ( )
inlinevirtual

creates pins from dx::device description and adds it as CoreAudio entity to the CoreAudio device

register all audio pins across all streams

+ Here is the call graph for this function:

◆ dx_catchall_rethrow() [1/2]

template<typename pin_t >
dx::coreaudio::server::device< pin_t >::dx_catchall_rethrow ( )

generic device property handler

  • has property (property= null)
  • get property
  • get property size (property= null)
  • set property (set= true)
  • is property settable (property= null, set= true)

◆ dx_catchall_rethrow() [2/2]

template<typename pin_t >
dx::coreaudio::server::device< pin_t >::dx_catchall_rethrow ( )
inlineoverride
Todo
coreaudio::server::device::launch(): remove clocksource pre-initialization hack to avoid hang at pin::property() kAudioStreamPropertyAvailablePhysicalFormats request

◆ pin() [1/2]

template<typename pin_t >
pin_t & dx::coreaudio::server::device< pin_t >::pin ( ::AudioObjectID id)
inline
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pin() [2/2]

template<typename pin_t >
pin_t & dx::coreaudio::server::device< pin_t >::pin ( target target)
inline
+ Here is the call graph for this function:

Member Data Documentation

◆ address

template<typename pin_t >
const ::AudioObjectPropertyAddress& dx::coreaudio::server::device< pin_t >::address

◆ circular

template<typename pin_t >
pin_t::circular_t* dx::coreaudio::server::device< pin_t >::circular

◆ clients

template<typename pin_t >
const ::AudioObjectPropertyAddress void ::UInt32 bool cf::reference<::CFStringRef> dx::coreaudio::server::device< pin_t >::clients

◆ count

template<typename pin_t >
uint64_t dx::coreaudio::server::device< pin_t >::count

cached sync cycle count to evaluate timesamp generation

◆ [struct]

struct { ... } dx::coreaudio::server::device< pin_t >::cycle

◆ direction

◆ idx

template<typename pin_t >
uint8_t dx::coreaudio::server::device< pin_t >::idx = 0

◆ io_started

template<typename pin_t >
std::atomic<int> dx::coreaudio::server::device< pin_t >::io_started
protected

◆ lines

template<typename pin_t >
uint32_t dx::coreaudio::server::device< pin_t >::lines

sample lines per sync cycle (per timestamp generation)

◆ linesize

template<typename pin_t >
uint32_t dx::coreaudio::server::device< pin_t >::linesize

size of all channels in bytes per sample

◆ offset

template<typename pin_t >
uint32_t dx::coreaudio::server::device< pin_t >::offset

timestamp generation offset to zero reference on seed change

◆ pins

template<typename pin_t >
std::deque<pin_t> dx::coreaudio::server::device< pin_t >::pins

◆ property

template<typename pin_t >
const ::AudioObjectPropertyAddress void* dx::coreaudio::server::device< pin_t >::property

◆ [struct]

struct { ... } dx::coreaudio::server::device< pin_t >::reference

◆ safety_offset

template<typename pin_t >
uint32_t dx::coreaudio::server::device< pin_t >::safety_offset[2]

RX/TX safety offsets;.

◆ seed

template<typename pin_t >
uint64_t dx::coreaudio::server::device< pin_t >::seed

◆ set

template<typename pin_t >
const ::AudioObjectPropertyAddress void ::UInt32 bool dx::coreaudio::server::device< pin_t >::set

◆ size

template<typename pin_t >
const ::AudioObjectPropertyAddress void ::UInt32& dx::coreaudio::server::device< pin_t >::size

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

(c) copyright 2009 dynamic acoustics e.U. generated on Tue Nov 25 2025

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.