Fix crash when host does not support midi-in; Add missing file
[juce-lv2.git] / juce / source / src / audio / devices / juce_AudioIODevice.cpp
blobab5cc6adaad9838d59086f3a25da6f21fc161414
1 /*
2 ==============================================================================
4 This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 Copyright 2004-11 by Raw Material Software Ltd.
7 ------------------------------------------------------------------------------
9 JUCE can be redistributed and/or modified under the terms of the GNU General
10 Public License (Version 2), as published by the Free Software Foundation.
11 A copy of the license is included in the JUCE distribution, or can be found
12 online at www.gnu.org/licenses.
14 JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18 ------------------------------------------------------------------------------
20 To release a closed-source product which uses JUCE, commercial licenses are
21 available: visit www.rawmaterialsoftware.com/juce for more information.
23 ==============================================================================
26 #include "../../core/juce_StandardHeader.h"
28 BEGIN_JUCE_NAMESPACE
30 #include "juce_AudioIODevice.h"
33 //==============================================================================
34 AudioIODevice::AudioIODevice (const String& deviceName, const String& typeName_)
35 : name (deviceName),
36 typeName (typeName_)
40 AudioIODevice::~AudioIODevice()
44 bool AudioIODevice::hasControlPanel() const
46 return false;
49 bool AudioIODevice::showControlPanel()
51 jassertfalse; // this should only be called for devices which return true from
52 // their hasControlPanel() method.
53 return false;
56 //==============================================================================
57 void AudioIODeviceCallback::audioDeviceError (const String&) {}
60 END_JUCE_NAMESPACE