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 - 2017 Christian Schoenebeck * |
* Copyright (C) 2005 - 2019 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 * |
628 |
inline Iterator allocPrepend() { |
inline Iterator allocPrepend() { |
629 |
if (pPool->poolIsEmpty()) return RTListBase<T>::end(); |
if (pPool->poolIsEmpty()) return RTListBase<T>::end(); |
630 |
Iterator element = pPool->alloc(); |
Iterator element = pPool->alloc(); |
631 |
prepend(element); |
this->prepend(element); |
632 |
#if CONFIG_DEVMODE |
#if CONFIG_DEVMODE |
633 |
element.list = this; |
element.list = this; |
634 |
#endif // CONFIG_DEVMODE |
#endif // CONFIG_DEVMODE |