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 - 2008 Christian Schoenebeck * |
* Copyright (C) 2005 - 2008 Christian Schoenebeck * |
7 |
* Copyright (C) 2009 - 2012 Christian Schoenebeck and Grigor Iliev * |
* Copyright (C) 2009 - 2012 Christian Schoenebeck and Grigor Iliev * |
8 |
* Copyright (C) 2013 - 2014 Christian Schoenebeck and Andreas Persson * |
* Copyright (C) 2013 - 2016 Christian Schoenebeck and Andreas Persson * |
9 |
* * |
* * |
10 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
11 |
* 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 * |
197 |
// Methods |
// Methods |
198 |
DiskThreadBase(int MaxStreams, uint BufferWrapElements, IM* pInstruments) : |
DiskThreadBase(int MaxStreams, uint BufferWrapElements, IM* pInstruments) : |
199 |
Thread(true, false, 1, -2), |
Thread(true, false, 1, -2), |
|
pInstruments(pInstruments), |
|
200 |
DeletionNotificationQueue(4*MaxStreams), |
DeletionNotificationQueue(4*MaxStreams), |
201 |
ProgramChangeQueue(512) |
ProgramChangeQueue(512), |
202 |
|
pInstruments(pInstruments) |
203 |
{ |
{ |
204 |
CreationQueue = new RingBuffer<create_command_t,false>(4*MaxStreams); |
CreationQueue = new RingBuffer<create_command_t,false>(4*MaxStreams); |
205 |
DeletionQueue = new RingBuffer<delete_command_t,false>(4*MaxStreams); |
DeletionQueue = new RingBuffer<delete_command_t,false>(4*MaxStreams); |