dxd - dynax driver framework 2.2.0d109
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)
 
void create_pins ()
 
 device (decltype(super::driver)&driver, decltype(super::id)&id)
 
 device (decltype(super::driver)&driver, decltype(super::id)&id, const typename super::desc &desc)
 
 dx_catchall_rethrow () virtual void configure(target target
 configure: handle device configuration change requests configure will only receive requests targetted to the device
 
 dx_catchall_rethrow (io_stop();) virtual void io_stop() try
 
redirect::indent indent (std::clog)
 
virtual void io_start () try
 
void launch () override
 
pin_t & pin (::AudioObjectID id)
 
pin_t & pin (target target)
 
virtual uint32_t property (target target, const ::AudioObjectPropertyAddress &address, void *property, ::UInt32 &size, bool set=false) try
 generic device property handler
 
virtual void remove_client (const ::AudioServerPlugInClientInfo *info)
 
hostsubmit (::AudioObjectID id, ::UInt64 action, uint64_t data=0)
 
hostsubmit (::AudioObjectID id, const ::AudioObjectPropertyAddress &address)
 
template<unsigned int count>
hostsubmit (::AudioObjectID id, const ::AudioObjectPropertyAddress(&addresses)[count])
 
 submit (target.id,{ .mSelector=static_cast<::AudioObjectPropertySelector >(action),.mScope=::kAudioObjectPropertyScopeGlobal})
 
 switch (action)
 

Public Attributes

::UInt64 action
 
std::map< pid_t, cf::reference<::CFStringRef > > clients
 
uint8_t idx = 0
 
::UInt64 void * info
 
std::deque< pin_t > pins
 

Protected Attributes

const ::AudioServerPlugInHostInterface * plugin
 

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

◆ 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 & 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 >
void dx::coreaudio::server::device< pin_t >::create_pins ( )
inline

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

register all audio pins across all streams

Todo
make sync ref stream selectable from stream::desc
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dx_catchall_rethrow() [1/2]

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

configure: handle device configuration change requests configure will only receive requests targetted to the device

◆ dx_catchall_rethrow() [2/2]

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

◆ indent()

template<typename pin_t >
redirect::indent dx::coreaudio::server::device< pin_t >::indent ( std::clog )
+ Here is the caller graph for this function:

◆ io_start()

template<typename pin_t >
virtual void dx::coreaudio::server::device< pin_t >::io_start ( )
inlinevirtual
Todo
coreaudio::device::io_start(): check stream state while waiting for cycle switch
+ Here is the call graph for this function:

◆ launch()

template<typename pin_t >
void dx::coreaudio::server::device< pin_t >::launch ( )
inlineoverride
+ Here is the call graph for this function:

◆ 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

◆ property()

template<typename pin_t >
virtual uint32_t dx::coreaudio::server::device< pin_t >::property ( target target,
const ::AudioObjectPropertyAddress & address,
void * property,
::UInt32 & size,
bool set = false )
inlinevirtual

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)
Todo
provide channel names
Todo
evaluate if setting of kAudioDevicePropertySafetyOffset should be supported
Todo
keep track and return running state of pin
Todo
kAudioSelectorControlPropertyAvailableItems: calc clock # settings offset for multiple clock support
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ remove_client()

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

◆ submit() [1/4]

host & dx::coreaudio::server::host::submit ( ::AudioObjectID id,
::UInt64 action,
uint64_t data = 0 )
inlineinherited

◆ submit() [2/4]

host & dx::coreaudio::server::host::submit ( ::AudioObjectID id,
const ::AudioObjectPropertyAddress & address )
inlineinherited

◆ submit() [3/4]

template<unsigned int count>
host & dx::coreaudio::server::host::submit ( ::AudioObjectID id,
const ::AudioObjectPropertyAddress(&) addresses[count] )
inlineinherited
+ Here is the caller graph for this function:

◆ submit() [4/4]

template<typename pin_t >
dx::coreaudio::server::device< pin_t >::submit ( target. id,
{ .mSelector=static_cast<::AudioObjectPropertySelector >(action),.mScope=::kAudioObjectPropertyScopeGlobal}  )
+ Here is the caller graph for this function:

◆ switch()

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

Member Data Documentation

◆ action

template<typename pin_t >
::UInt64 dx::coreaudio::server::device< pin_t >::action

◆ circular

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

◆ clients

template<typename pin_t >
std::map<pid_t, 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

template<typename pin_t >
dx::stream::direction::direction dx::coreaudio::server::device< pin_t >::direction

◆ engine_driven

template<typename pin_t >
bool dx::coreaudio::server::device< pin_t >::engine_driven

pins do not provide any means of driving streaming

◆ idx

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

◆ info

template<typename pin_t >
::UInt64 void* dx::coreaudio::server::device< pin_t >::info
Initial value:
{
if(this->driver.log.interface.setup>= log::level::debug)
std::clog<< class_name<< "<"<< static_cast<unsigned int>(idx)<< ">::"<< __FUNCTION__<<
" "<< target<<
": "<< to(static_cast<uint32_t>(action))<<
" info:"<< reinterpret_cast<const uint64_t&>(info)<<
std::endl
::UInt64 action
Definition dx_coreaudio_server_device.h:868
::UInt64 void * info
Definition dx_coreaudio_server_device.h:869
uint8_t idx
Definition dx_coreaudio_server_device.h:68
std::string to(uint32_t fourchar)
Definition dx_common.h:473
unsigned int uint32_t
Definition wdk/dxd_base.h:110
unsigned __int64 uint64_t
Definition wdk/dxd_base.h:112

◆ 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

◆ plugin

const ::AudioServerPlugInHostInterface* dx::coreaudio::server::host::plugin
protectedinherited

◆ [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

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

(c) copyright 2009 dynamic acoustics e.U. generated on Mon Apr 21 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.