Audacity 3.2.0
Classes | Namespaces | Typedefs | Functions
AudioUnitUtils.h File Reference
#include <algorithm>
#include <AudioUnit/AudioUnit.h>
#include "CFResources.h"
#include "PackedArray.h"
Include dependency graph for AudioUnitUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AudioUnitCleaner< T, fn >
 Generates deleters for std::unique_ptr that clean up AU plugin state. More...
 
struct  AudioUnitUtils::Buffer
 
struct  AudioUnitUtils::RenderCallback
 
struct  AudioUnitUtils::Parameter
 
struct  AudioUnitUtils::ParameterInfo
 
struct  AudioUnitUtils::ParameterNameInfo
 
struct  AudioUnitUtils::Property
 
struct  AudioUnitUtils::UserPreset
 
struct  AudioUnitUtils::StreamBasicDescription
 
struct  PackedArray::Traits< AudioBufferList >
 
struct  PackedArray::Traits< AudioBufferList >::header_type
 
struct  PackedArray::Traits< AudioUnitCocoaViewInfo >
 
struct  PackedArray::Traits< AudioUnitCocoaViewInfo >::header_type
 

Namespaces

namespace  AudioUnitUtils
 

Typedefs

template<typename Ptr , OSStatus(*)(Ptr) fn, typename T = std::remove_pointer_t<Ptr>>
using AudioUnitCleanup = std::unique_ptr< T, AudioUnitCleaner< T, fn > >
 RAII for cleaning up AU plugin state. More...
 

Functions

OSStatus AudioUnitUtils::GetFixedSizePropertyPtr (AudioUnit unit, AudioUnitPropertyID inID, void *pProperty, UInt32 size, AudioUnitScope inScope, AudioUnitElement inElement)
 Type-erased function to get an AudioUnit property of fixed size. More...
 
template<typename T >
OSStatus AudioUnitUtils::GetFixedSizeProperty (AudioUnit unit, AudioUnitPropertyID inID, T &property, AudioUnitScope inScope=kAudioUnitScope_Global, AudioUnitElement inElement=0)
 
OSStatus AudioUnitUtils::GetVariableSizePropertyPtr (AudioUnit unit, AudioUnitPropertyID inID, size_t minSize, void *&pObject, size_t &size, AudioUnitScope inScope, AudioUnitElement inElement)
 Type-erased function to get an AudioUnit property of variable size. More...
 
template<typename T >
OSStatus AudioUnitUtils::GetVariableSizeProperty (AudioUnit unit, AudioUnitPropertyID inID, PackedArray::Ptr< T > &pObject, AudioUnitScope inScope=kAudioUnitScope_Global, AudioUnitElement inElement=0)
 
OSStatus AudioUnitUtils::SetPropertyPtr (AudioUnit unit, AudioUnitPropertyID inID, const void *pProperty, UInt32 size, AudioUnitScope inScope, AudioUnitElement inElement)
 Type-erased function to set an AudioUnit property. More...
 
template<typename T >
OSStatus AudioUnitUtils::SetProperty (AudioUnit unit, AudioUnitPropertyID inID, const T &property, AudioUnitScope inScope=kAudioUnitScope_Global, AudioUnitElement inElement=0)
 

Detailed Description


Audacity: A Digital Audio Editor

Paul Licameli

Definition in file AudioUnitUtils.h.

Typedef Documentation

◆ AudioUnitCleanup

template<typename Ptr , OSStatus(*)(Ptr) fn, typename T = std::remove_pointer_t<Ptr>>
using AudioUnitCleanup = std::unique_ptr<T, AudioUnitCleaner<T, fn> >

RAII for cleaning up AU plugin state.

Definition at line 27 of file AudioUnitUtils.h.