/[svn]/linuxsampler/trunk/src/engines/EngineChannel.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/EngineChannel.cpp

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

revision 2329 by persson, Sat Oct 1 08:23:02 2011 UTC revision 2330 by schoenebeck, Mon Mar 12 15:14:31 2012 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 - 2011 Christian Schoenebeck                       *   *   Copyright (C) 2005 - 2012 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 77  namespace LinuxSampler { Line 77  namespace LinuxSampler {
77      EngineChannel::~EngineChannel() {      EngineChannel::~EngineChannel() {
78          delete p;          delete p;
79      }      }
80        
81        /**
82         * Sometimes an instrument is splitted over several files. For example
83         * the GigaStudio format may split an instrument over a certain amount
84         * of files like: "Foo.gig", "Foo.gx01", "Foo.gx02", ...
85         * This method allows to retrieve the whole list of files that is used
86         * for the currently loaded instrument on this engine channel.
87         * Calling this method with index 0 is equivalent as calling the equal
88         * named method without any argument.
89         *
90         * @param index - index of sought file name (0, 1, 2, ...)
91         * @returns file name or empty string if index out of bounds
92         */
93        String EngineChannel::InstrumentFileName(int index) {
94            return (index == 0) ? InstrumentFileName() : "";
95        }
96    
97      void EngineChannel::SetMute(int state) throw (Exception) {      void EngineChannel::SetMute(int state) throw (Exception) {
98          if (p->iMute == state) return;          if (p->iMute == state) return;

Legend:
Removed from v.2329  
changed lines
  Added in v.2330

  ViewVC Help
Powered by ViewVC