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, 2006 Christian Schoenebeck * |
* Copyright (C) 2005 - 2007 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 * |
48 |
// Member Types |
// Member Types |
49 |
typedef uint32_t OrderID_t; |
typedef uint32_t OrderID_t; |
50 |
typedef uint32_t Handle; ///< unique identifier of a relationship between one stream and a consumer (Voice) |
typedef uint32_t Handle; ///< unique identifier of a relationship between one stream and a consumer (Voice) |
51 |
|
enum { INVALID_HANDLE = 0 }; |
52 |
enum state_t { ///< streams go through severe cyclic state transition (unused->active->end->unused->...) |
enum state_t { ///< streams go through severe cyclic state transition (unused->active->end->unused->...) |
53 |
state_unused, ///< stream is not in use, thus can still be launched |
state_unused, ///< stream is not in use, thus can still be launched |
54 |
state_active, ///< stream provides data in it's buffer to be read and hasn't reached the end yet (this is the usual case) |
state_active, ///< stream provides data in it's buffer to be read and hasn't reached the end yet (this is the usual case) |