/[svn]/linuxsampler/trunk/src/drivers/Device.cpp
ViewVC logotype

Contents of /linuxsampler/trunk/src/drivers/Device.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1934 - (show annotations) (download)
Sun Jul 12 10:35:55 2009 UTC (14 years, 8 months ago) by schoenebeck
File size: 1766 byte(s)
* bugfix: don't allow to create or destroy audio devices and MIDI devices
  of host plugin implementations (e.g VST, AU, DSSI, LV2) on their own,
  as they only exist in the context of the plugin instance and would
  otherwise crash the application

1 /***************************************************************************
2 * *
3 * Copyright (C) 2009 Christian Schoenebeck *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the Free Software *
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
18 * MA 02111-1307 USA *
19 ***************************************************************************/
20
21 #include "Device.h"
22
23 namespace LinuxSampler {
24
25 bool Device::isAutonomousDevice() {
26 return true;
27 }
28
29 bool Device::isAutonomousDriver() {
30 return true;
31 }
32
33 int Device::deviceId() const {
34 return iDeviceId;
35 }
36
37 void Device::setDeviceId(int id) {
38 iDeviceId = id;
39 }
40
41 } // namespace LinuxSampler

  ViewVC Help
Powered by ViewVC