OpenShot Library | libopenshot-audio  0.2.0
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
virtual ~AudioIODeviceType()
Destructor.
static AudioIODeviceType * createAudioIODeviceType_CoreAudio()
Creates a CoreAudio device type if it's available on this platform, or returns null.
void callDeviceChangeListeners()
Synchronously calls all the registered device list change listeners.
static AudioIODeviceType * createAudioIODeviceType_iOSAudio()
Creates an iOS device type if it's available on this platform, or returns null.
static AudioIODeviceType * createAudioIODeviceType_Oboe()
Creates an Oboe device type if it's available on this platform, or returns null.
static AudioIODeviceType * createAudioIODeviceType_OpenSLES()
Creates an Android OpenSLES device type if it's available on this platform, or returns null...
static AudioIODeviceType * createAudioIODeviceType_ASIO()
Creates an ASIO device type if it's available on this platform, or returns null.
static AudioIODeviceType * createAudioIODeviceType_Bela()
Creates a Bela device type if it's available on this platform, or returns null.
Represents a type of audio driver, such as DirectSound, ASIO, CoreAudio, etc.
A class for receiving events when audio devices are inserted or removed.
static AudioIODeviceType * createAudioIODeviceType_JACK()
Creates a JACK device type if it's available on this platform, or returns null.
static AudioIODeviceType * createAudioIODeviceType_DirectSound()
Creates a DirectSound device type if it's available on this platform, or returns null.
static AudioIODeviceType * createAudioIODeviceType_WASAPI(bool exclusiveMode)
Creates a WASAPI device type if it's available on this platform, or returns null. ...
void addListener(Listener *listener)
Adds a listener that will be called when this type of device is added or removed from the system...
virtual void audioDeviceListChanged()=0
Called when the list of available audio devices changes.
static AudioIODeviceType * createAudioIODeviceType_Android()
Creates an Android device type if it's available on this platform, or returns null.
static AudioIODeviceType * createAudioIODeviceType_ALSA()
Creates an ALSA device type if it's available on this platform, or returns null.
void removeListener(Listener *listener)
Removes a listener that was previously added with addListener().