1 |
/*************************************************************************** |
2 |
* * |
3 |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
5 |
* Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005-2009 Christian Schoenebeck * |
7 |
* * |
8 |
* 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 * |
10 |
* the Free Software Foundation; either version 2 of the License, or * |
11 |
* (at your option) any later version. * |
12 |
* * |
13 |
* This program is distributed in the hope that it will be useful, * |
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
16 |
* GNU General Public License for more details. * |
17 |
* * |
18 |
* You should have received a copy of the GNU General Public License * |
19 |
* along with this program; if not, write to the Free Software * |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, * |
21 |
* MA 02111-1307 USA * |
22 |
***************************************************************************/ |
23 |
|
24 |
#ifndef __LS_VOICE_H__ |
25 |
#define __LS_VOICE_H__ |
26 |
|
27 |
#include "Event.h" |
28 |
#include "../../common/Pool.h" |
29 |
|
30 |
namespace LinuxSampler { |
31 |
|
32 |
class Voice { |
33 |
public: |
34 |
enum playback_state_t { |
35 |
playback_state_end = 0, |
36 |
playback_state_init = 1, |
37 |
playback_state_ram = 2, |
38 |
playback_state_disk = 3 |
39 |
}; |
40 |
|
41 |
// Types |
42 |
enum type_t { |
43 |
type_normal, |
44 |
type_release_trigger_required, ///< If the key of this voice will be released, it causes a release triggered voice to be spawned |
45 |
type_release_trigger ///< Release triggered voice which cannot be killed by releasing its key |
46 |
}; |
47 |
}; |
48 |
} // namespace LinuxSampler |
49 |
|
50 |
#endif /* __LS_VOICE_H__ */ |
51 |
|