OpenShot Audio Library | OpenShotAudio 0.3.2
Loading...
Searching...
No Matches
juce_AudioIODeviceType.cpp
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2017 - ROLI Ltd.
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 The code included in this file is provided under the terms of the ISC license
11 http://www.isc.org/downloads/software-support-policy/isc-license. Permission
12 To use, copy, modify, and/or distribute this software for any purpose with or
13 without fee is hereby granted provided that the above copyright notice and
14 this permission notice appear in all copies.
15
16 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
17 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
18 DISCLAIMED.
19
20 ==============================================================================
21*/
22
23namespace juce
24{
25
26AudioIODeviceType::AudioIODeviceType (const String& name)
27 : typeName (name)
28{
29}
30
31AudioIODeviceType::~AudioIODeviceType()
32{
33}
34
35//==============================================================================
36void AudioIODeviceType::addListener (Listener* l) { listeners.add (l); }
37void AudioIODeviceType::removeListener (Listener* l) { listeners.remove (l); }
38
39void AudioIODeviceType::callDeviceChangeListeners()
40{
41 listeners.call ([] (Listener& l) { l.audioDeviceListChanged(); });
42}
43
44//==============================================================================
45#if ! JUCE_MAC
46AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_CoreAudio() { return nullptr; }
47#endif
48
49#if ! JUCE_IOS
50AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_iOSAudio() { return nullptr; }
51#endif
52
53#if ! (JUCE_WINDOWS && JUCE_WASAPI)
54AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_WASAPI (bool) { return nullptr; }
55#endif
56
57#if ! (JUCE_WINDOWS && JUCE_DIRECTSOUND)
58AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_DirectSound() { return nullptr; }
59#endif
60
61#if ! (JUCE_WINDOWS && JUCE_ASIO)
62AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_ASIO() { return nullptr; }
63#endif
64
65#if ! (JUCE_LINUX && JUCE_ALSA)
66AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_ALSA() { return nullptr; }
67#endif
68
69#if ! (JUCE_LINUX && JUCE_JACK)
70AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_JACK() { return nullptr; }
71#endif
72
73#if ! (JUCE_LINUX && JUCE_BELA)
74AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_Bela() { return nullptr; }
75#endif
76
77#if ! JUCE_ANDROID
78AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_Android() { return nullptr; }
79#endif
80
81#if ! (JUCE_ANDROID && JUCE_USE_ANDROID_OPENSLES)
82AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_OpenSLES() { return nullptr; }
83#endif
84
85#if ! (JUCE_ANDROID && JUCE_USE_ANDROID_OBOE)
86AudioIODeviceType* AudioIODeviceType::createAudioIODeviceType_Oboe() { return nullptr; }
87#endif
88
89} // namespace juce