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 - 2011 Christian Schoenebeck * |
* Copyright (C) 2005 - 2016 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* 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 * |
30 |
#include "Filter.h" |
#include "Filter.h" |
31 |
#include "SynthesisParam.h" |
#include "SynthesisParam.h" |
32 |
|
|
33 |
#define SYNTHESIS_MODE_SET_INTERPOLATE(iMode,bVal) if (bVal) iMode |= 0x01; else iMode &= ~0x01 /* (un)set mode bit 0 */ |
#define SYNTHESIS_MODE_SET_INTERPOLATE(iMode,bVal) { if (bVal) iMode |= 0x01; else iMode &= ~0x01; } /* (un)set mode bit 0 */ |
34 |
#define SYNTHESIS_MODE_SET_FILTER(iMode,bVal) if (bVal) iMode |= 0x02; else iMode &= ~0x02 /* (un)set mode bit 1 */ |
#define SYNTHESIS_MODE_SET_FILTER(iMode,bVal) { if (bVal) iMode |= 0x02; else iMode &= ~0x02; } /* (un)set mode bit 1 */ |
35 |
#define SYNTHESIS_MODE_SET_LOOP(iMode,bVal) if (bVal) iMode |= 0x04; else iMode &= ~0x04 /* (un)set mode bit 2 */ |
#define SYNTHESIS_MODE_SET_LOOP(iMode,bVal) { if (bVal) iMode |= 0x04; else iMode &= ~0x04; } /* (un)set mode bit 2 */ |
36 |
#define SYNTHESIS_MODE_SET_CHANNELS(iMode,bVal) if (bVal) iMode |= 0x08; else iMode &= ~0x08 /* (un)set mode bit 3 */ |
#define SYNTHESIS_MODE_SET_CHANNELS(iMode,bVal) { if (bVal) iMode |= 0x08; else iMode &= ~0x08; } /* (un)set mode bit 3 */ |
37 |
#define SYNTHESIS_MODE_SET_BITDEPTH24(iMode,bVal) if (bVal) iMode |= 0x10; else iMode &= ~0x10 /* (un)set mode bit 4 */ |
#define SYNTHESIS_MODE_SET_BITDEPTH24(iMode,bVal) { if (bVal) iMode |= 0x10; else iMode &= ~0x10; } /* (un)set mode bit 4 */ |
38 |
//TODO: the Asm implementation mode is currently not implemented anymore, since Asm synthesis code is currently broken! |
//TODO: the Asm implementation mode is currently not implemented anymore, since Asm synthesis code is currently broken! |
39 |
#define SYNTHESIS_MODE_SET_IMPLEMENTATION(iMode,bVal) if (bVal) iMode |= 0x20; else iMode &= ~0x20 /* (un)set mode bit 5 */ |
#define SYNTHESIS_MODE_SET_IMPLEMENTATION(iMode,bVal) { if (bVal) iMode |= 0x20; else iMode &= ~0x20; } /* (un)set mode bit 5 */ |
40 |
//TODO: the profiling mode is currently not implemented anymore! |
//TODO: the profiling mode is currently not implemented anymore! |
41 |
#define SYNTHESIS_MODE_SET_PROFILING(iMode,bVal) if (bVal) iMode |= 0x40; else iMode &= ~0x40 /* (un)set mode bit 6 */ |
#define SYNTHESIS_MODE_SET_PROFILING(iMode,bVal) { if (bVal) iMode |= 0x40; else iMode &= ~0x40; } /* (un)set mode bit 6 */ |
42 |
|
|
43 |
#define SYNTHESIS_MODE_GET_INTERPOLATE(iMode) iMode & 0x01 |
#define SYNTHESIS_MODE_GET_INTERPOLATE(iMode) (iMode & 0x01) |
44 |
#define SYNTHESIS_MODE_GET_FILTER(iMode) iMode & 0x02 |
#define SYNTHESIS_MODE_GET_FILTER(iMode) (iMode & 0x02) |
45 |
#define SYNTHESIS_MODE_GET_LOOP(iMode) iMode & 0x04 |
#define SYNTHESIS_MODE_GET_LOOP(iMode) (iMode & 0x04) |
46 |
#define SYNTHESIS_MODE_GET_CHANNELS(iMode) iMode & 0x08 |
#define SYNTHESIS_MODE_GET_CHANNELS(iMode) (iMode & 0x08) |
47 |
#define SYNTHESIS_MODE_GET_BITDEPTH24(iMode) iMode & 0x10 |
#define SYNTHESIS_MODE_GET_BITDEPTH24(iMode) (iMode & 0x10) |
48 |
#define SYNTHESIS_MODE_GET_IMPLEMENTATION(iMode) iMode & 0x20 |
#define SYNTHESIS_MODE_GET_IMPLEMENTATION(iMode) (iMode & 0x20) |
49 |
|
|
50 |
|
|
51 |
namespace LinuxSampler { namespace gig { |
namespace LinuxSampler { namespace gig { |