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-2009 Christian Schoenebeck * |
* Copyright (C) 2005-2016 Christian Schoenebeck * |
7 |
* Copyright (C) 2009 Grigor Iliev * |
* Copyright (C) 2009 Grigor Iliev * |
8 |
* * |
* * |
9 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
45 |
} |
} |
46 |
|
|
47 |
LinuxSampler::Stream* DiskThread::CreateStream(long BufferSize, uint BufferWrapElements) { |
LinuxSampler::Stream* DiskThread::CreateStream(long BufferSize, uint BufferWrapElements) { |
48 |
return new Stream(&DecompressionBuffer, BufferSize, BufferWrapElements); // 131072 sample words |
return new Stream(&DecompressionBuffer, (uint)BufferSize, BufferWrapElements); // 131072 sample words |
49 |
} |
} |
50 |
|
|
51 |
void DiskThread::LaunchStream ( |
void DiskThread::LaunchStream ( |