2 |
* * |
* * |
3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003 by Benno Senoner * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* * |
* * |
7 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
8 |
* 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 * |
58 |
void WriteSilence(unsigned long SilenceSampleWords); |
void WriteSilence(unsigned long SilenceSampleWords); |
59 |
|
|
60 |
inline int GetReadSpace() { |
inline int GetReadSpace() { |
61 |
return (pRingBuffer && State == state_active) ? pRingBuffer->read_space() : 0; |
return (pRingBuffer && State != state_unused) ? pRingBuffer->read_space() : 0; |
62 |
} |
} |
63 |
|
|
64 |
inline int GetWriteSpace() { |
inline int GetWriteSpace() { |
115 |
|
|
116 |
// Static Attributes |
// Static Attributes |
117 |
static uint UnusedStreams; //< Reflects how many stream objects of all stream instances are currently not in use. |
static uint UnusedStreams; //< Reflects how many stream objects of all stream instances are currently not in use. |
118 |
|
static uint TotalStreams; //< Reflects how many stream objects currently exist. |
119 |
|
|
120 |
// Methods |
// Methods |
121 |
inline void Reset() { |
inline void Reset() { |