3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 Christian Schoenebeck * |
* Copyright (C) 2005, 2006 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
27 |
#include <vector> |
#include <vector> |
28 |
#include <map> |
#include <map> |
29 |
#include "common/global.h" |
#include "common/global.h" |
30 |
#include "common/LinuxSamplerException.h" |
#include "common/Exception.h" |
31 |
#include "engines/common/EngineChannel.h" |
#include "engines/common/EngineChannel.h" |
32 |
#include "drivers/midi/MidiInputDevice.h" |
#include "drivers/midi/MidiInputDevice.h" |
33 |
#include "drivers/audio/AudioOutputDevice.h" |
#include "drivers/audio/AudioOutputDevice.h" |
51 |
* Assign a sampler engine type to this sampler channel. |
* Assign a sampler engine type to this sampler channel. |
52 |
* |
* |
53 |
* @param EngineType - type of the engine to use |
* @param EngineType - type of the engine to use |
54 |
* @throws LinuxSamplerException - if \a EngineType is invalid |
* @throws Exception - if \a EngineType is invalid |
55 |
*/ |
*/ |
56 |
void SetEngineType(String EngineType) throw (LinuxSamplerException); |
void SetEngineType(String EngineType) throw (Exception); |
57 |
|
|
58 |
/** |
/** |
59 |
* Connect this sampler channel to an audio output device, that |
* Connect this sampler channel to an audio output device, that |
288 |
* @param Parameters - eventually needed driver parameters to |
* @param Parameters - eventually needed driver parameters to |
289 |
* create the device |
* create the device |
290 |
* @returns pointer to created audio output device |
* @returns pointer to created audio output device |
291 |
* @throws LinuxSamplerException if device could not be created |
* @throws Exception if device could not be created |
292 |
*/ |
*/ |
293 |
AudioOutputDevice* CreateAudioOutputDevice(String AudioDriver, std::map<String,String> Parameters) throw (LinuxSamplerException); |
AudioOutputDevice* CreateAudioOutputDevice(String AudioDriver, std::map<String,String> Parameters) throw (Exception); |
294 |
|
|
295 |
/** |
/** |
296 |
* Create a midi input device. |
* Create a midi input device. |
299 |
* @param Parameters - eventually needed driver parameters to |
* @param Parameters - eventually needed driver parameters to |
300 |
* create the device |
* create the device |
301 |
* @returns pointer to created midi input device |
* @returns pointer to created midi input device |
302 |
* @throws LinuxSamplerException if device could not be created |
* @throws Exception if device could not be created |
303 |
*/ |
*/ |
304 |
MidiInputDevice* CreateMidiInputDevice(String MidiDriver, std::map<String,String> Parameters) throw (LinuxSamplerException); |
MidiInputDevice* CreateMidiInputDevice(String MidiDriver, std::map<String,String> Parameters) throw (Exception); |
305 |
|
|
306 |
/** |
/** |
307 |
* Returns the number of all created audio output devices. |
* Returns the number of all created audio output devices. |
327 |
* Destroy the given audio output device and takes care if there |
* Destroy the given audio output device and takes care if there |
328 |
* are still sampler angines connected to this device, etc. |
* are still sampler angines connected to this device, etc. |
329 |
* |
* |
330 |
* @throws LinuxSamplerException if sampler channels are still |
* @throws Exception if sampler channels are still |
331 |
* connected to the device |
* connected to the device |
332 |
*/ |
*/ |
333 |
void DestroyAudioOutputDevice(AudioOutputDevice* pDevice) throw (LinuxSamplerException); |
void DestroyAudioOutputDevice(AudioOutputDevice* pDevice) throw (Exception); |
334 |
|
|
335 |
/** |
/** |
336 |
* Destroy the given MIDI input device and takes care if there |
* Destroy the given MIDI input device and takes care if there |
337 |
* are still sampler angines connected to this device, etc. |
* are still sampler angines connected to this device, etc. |
338 |
* |
* |
339 |
* @throws LinuxSamplerException if sampler channels are still |
* @throws Exception if sampler channels are still |
340 |
* connected to the device |
* connected to the device |
341 |
*/ |
*/ |
342 |
void DestroyMidiInputDevice(MidiInputDevice* pDevice) throw (LinuxSamplerException); |
void DestroyMidiInputDevice(MidiInputDevice* pDevice) throw (Exception); |
343 |
|
|
344 |
/** |
/** |
345 |
* Gets the current number of all active voices. |
* Gets the current number of all active voices. |