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 - 2010 Christian Schoenebeck * |
* Copyright (C) 2005 - 2016 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This library is free software; you can redistribute it and/or modify * |
* This library 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 * |
149 |
// add routings with default destinations |
// add routings with default destinations |
150 |
AudioOutputDevice* pDevice = pEngineChannel->GetAudioOutputDevice(); |
AudioOutputDevice* pDevice = pEngineChannel->GetAudioOutputDevice(); |
151 |
const int iChanOffset = (pDevice) ? pDevice->ChannelCount() - pEngineChannel->Channels() : 0; |
const int iChanOffset = (pDevice) ? pDevice->ChannelCount() - pEngineChannel->Channels() : 0; |
152 |
for (int i = Routing.size(); i < pEngineChannel->Channels(); i++) { |
for (int i = (int)Routing.size(); i < pEngineChannel->Channels(); i++) { |
153 |
const int iDestination = iChanOffset + i; |
const int iDestination = iChanOffset + i; |
154 |
Routing.push_back(iDestination); |
Routing.push_back(iDestination); |
155 |
} |
} |