OpenShot Audio Library | OpenShotAudio  0.3.1
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 
23 namespace juce
24 {
25 
26 AudioIODeviceType::AudioIODeviceType (const String& name)
27  : typeName (name)
28 {
29 }
30 
32 {
33 }
34 
35 //==============================================================================
36 void AudioIODeviceType::addListener (Listener* l) { listeners.add (l); }
37 void AudioIODeviceType::removeListener (Listener* l) { listeners.remove (l); }
38 
40 {
41  listeners.call ([] (Listener& l) { l.audioDeviceListChanged(); });
42 }
43 
44 //==============================================================================
45 #if ! JUCE_MAC
47 #endif
48 
49 #if ! JUCE_IOS
51 #endif
52 
53 #if ! (JUCE_WINDOWS && JUCE_WASAPI)
55 #endif
56 
57 #if ! (JUCE_WINDOWS && JUCE_DIRECTSOUND)
59 #endif
60 
61 #if ! (JUCE_WINDOWS && JUCE_ASIO)
63 #endif
64 
65 #if ! (JUCE_LINUX && JUCE_ALSA)
67 #endif
68 
69 #if ! (JUCE_LINUX && JUCE_JACK)
71 #endif
72 
73 #if ! (JUCE_LINUX && JUCE_BELA)
75 #endif
76 
77 #if ! JUCE_ANDROID
79 #endif
80 
81 #if ! (JUCE_ANDROID && JUCE_USE_ANDROID_OPENSLES)
83 #endif
84 
85 #if ! (JUCE_ANDROID && JUCE_USE_ANDROID_OBOE)
87 #endif
88 
89 } // namespace juce
static AudioIODeviceType * createAudioIODeviceType_iOSAudio()
static AudioIODeviceType * createAudioIODeviceType_Oboe()
static AudioIODeviceType * createAudioIODeviceType_CoreAudio()
static AudioIODeviceType * createAudioIODeviceType_OpenSLES()
static AudioIODeviceType * createAudioIODeviceType_ASIO()
static AudioIODeviceType * createAudioIODeviceType_Bela()
static AudioIODeviceType * createAudioIODeviceType_JACK()
static AudioIODeviceType * createAudioIODeviceType_DirectSound()
static AudioIODeviceType * createAudioIODeviceType_WASAPI(bool exclusiveMode)
void addListener(Listener *listener)
virtual void audioDeviceListChanged()=0
static AudioIODeviceType * createAudioIODeviceType_Android()
static AudioIODeviceType * createAudioIODeviceType_ALSA()
void removeListener(Listener *listener)