/[svn]/linuxsampler/trunk/src/Sampler.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/Sampler.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 675 by schoenebeck, Wed Jun 22 22:09:28 2005 UTC revision 880 by schoenebeck, Tue Jun 27 22:57:37 2006 UTC
# Line 3  Line 3 
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  *
# Line 27  Line 27 
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"
# Line 39  namespace LinuxSampler { Line 39  namespace LinuxSampler {
39    
40      /** @brief LinuxSampler sampler channel      /** @brief LinuxSampler sampler channel
41       *       *
42       * Encapsulates a channel of a specific sampler engine typ, one       * Encapsulates a channel of a specific sampler engine type, one
43       * connection to a MIDI input device and one connection to an audio       * connection to a MIDI input device and one connection to an audio
44       * output device. You cannot create an instance of this class on your       * output device. You cannot create an instance of this class on your
45       * own, you have to use the AddSamplerChannel() method of the Sampler       * own, you have to use the AddSamplerChannel() method of the Sampler
# Line 51  namespace LinuxSampler { Line 51  namespace LinuxSampler {
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
# Line 155  namespace LinuxSampler { Line 155  namespace LinuxSampler {
155    
156              /** Getting MIDI input device port given its index number. */              /** Getting MIDI input device port given its index number. */
157              MidiInputPort* __GetMidiInputDevicePort(int iMidiPort);              MidiInputPort* __GetMidiInputDevicePort(int iMidiPort);
             midi_chan_t    __GetMidiChannel();  
158    
159              Sampler*           pSampler;              Sampler*           pSampler;
160              EngineChannel*     pEngineChannel;              EngineChannel*     pEngineChannel;
# Line 289  namespace LinuxSampler { Line 288  namespace LinuxSampler {
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.
# Line 300  namespace LinuxSampler { Line 299  namespace LinuxSampler {
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.
# Line 328  namespace LinuxSampler { Line 327  namespace LinuxSampler {
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.
346                 * @returns The current number of all active voices.
347                 */
348                int GetVoiceCount();
349    
350              /**              /**
351               * Reset the whole sampler. Destroy all engines, sampler               * Reset the whole sampler. Destroy all engines, sampler

Legend:
Removed from v.675  
changed lines
  Added in v.880

  ViewVC Help
Powered by ViewVC