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 - 2008 Christian Schoenebeck * |
7 |
* Copyright (C) 2009 Grigor Iliev * |
* Copyright (C) 2009 - 2011 Christian Schoenebeck and 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 * |
10 |
* 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 * |
67 |
bool bNotify; |
bool bNotify; |
68 |
}; |
}; |
69 |
struct program_change_command_t { |
struct program_change_command_t { |
70 |
uint8_t Program; |
uint32_t Program; |
71 |
EngineChannel* pEngineChannel; |
EngineChannel* pEngineChannel; |
72 |
}; |
}; |
73 |
// Attributes |
// Attributes |
382 |
* Tell the disk thread to do a program change on the specified |
* Tell the disk thread to do a program change on the specified |
383 |
* EngineChannel. |
* EngineChannel. |
384 |
*/ |
*/ |
385 |
int OrderProgramChange(uint8_t Program, EngineChannel* pEngineChannel) { |
int OrderProgramChange(uint32_t Program, EngineChannel* pEngineChannel) { |
386 |
program_change_command_t cmd; |
program_change_command_t cmd; |
387 |
cmd.Program = Program; |
cmd.Program = Program; |
388 |
cmd.pEngineChannel = pEngineChannel; |
cmd.pEngineChannel = pEngineChannel; |