-
Notifications
You must be signed in to change notification settings - Fork 2
/
CoreAudioDebugging.h
48 lines (32 loc) · 1.36 KB
/
CoreAudioDebugging.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef CORE_AUDIO_DEBUGGING_H
#define CORE_AUDIO_DEBUGGING_H
#include <AudioUnit/AUComponent.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
When built as non-Objective-C/C++, the pointers returned by the functions below
can be simply 'free'ed when no longer needed as they are allocated with 'calloc'.
Created by Andrew Fernandes (andrew@fernandes.org) on 2014/03/14.
Copyright (c) 2014 Andrew Fernandes and Pharynks Corporation.
Licensed under the MIT license (http://opensource.org/licenses/MIT).
*/
char * StringFromAudioStreamBasicDescription(const AudioStreamBasicDescription asbd);
#ifdef __cplusplus
char * StringFromAudioComponentDescription(const AudioComponentDescription acd, const bool includeFlags = false );
#else
char * StringFromAudioComponentDescription(const AudioComponentDescription acd, const bool includeFlags );
#endif
#if __OBJC__
#import <Foundation/NSString.h>
NSString * NSStringFromAudioStreamBasicDescription(const AudioStreamBasicDescription asbd);
#ifdef __cplusplus
NSString * NSStringFromAudioComponentDescription(const AudioComponentDescription acd, const bool includeFlags = false );
#else
NSString * NSStringFromAudioComponentDescription(const AudioComponentDescription acd, const bool includeFlags );
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif /* ! CORE_AUDIO_DEBUGGING_H */