30 |
# warning Stream.h included |
# warning Stream.h included |
31 |
#endif // DEBUG_HEADERS |
#endif // DEBUG_HEADERS |
32 |
|
|
33 |
|
#include <gig.h> |
34 |
|
|
35 |
#include "../../common/RingBuffer.h" |
#include "../../common/RingBuffer.h" |
|
#include "../../lib/fileloader/libgig/gig.h" |
|
36 |
|
|
37 |
namespace LinuxSampler { namespace gig { |
namespace LinuxSampler { namespace gig { |
38 |
|
|
39 |
|
/** @brief Buffered Disk Stream |
40 |
|
* |
41 |
|
* This encapsulation of a disk stream uses a ring buffer to allow |
42 |
|
* thread safe refilling the stream's buffer with one thread (disk |
43 |
|
* thread) and actual use / extraction of the audio data from the |
44 |
|
* stream's buffer with another thread (audio thread). |
45 |
|
*/ |
46 |
class Stream { |
class Stream { |
47 |
public: |
public: |
48 |
// Member Types |
// Member Types |