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 - 2013 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 * |
267 |
|
|
268 |
void AudioOutputDevice::AcquireChannels(uint Channels) { |
void AudioOutputDevice::AcquireChannels(uint Channels) { |
269 |
if (Channels > this->Channels.size()) { |
if (Channels > this->Channels.size()) { |
270 |
for (int c = this->Channels.size(); c < Channels; c++) { |
for (size_t c = this->Channels.size(); c < Channels; c++) { |
271 |
this->Channels.push_back(CreateChannel(c)); |
this->Channels.push_back(CreateChannel(uint(c))); |
272 |
} |
} |
273 |
} |
} |
274 |
} |
} |
275 |
|
|
276 |
uint AudioOutputDevice::ChannelCount() { |
uint AudioOutputDevice::ChannelCount() { |
277 |
return Channels.size(); |
return (uint) Channels.size(); |
278 |
} |
} |
279 |
|
|
280 |
std::map<String,DeviceCreationParameter*> AudioOutputDevice::DeviceParameters() { |
std::map<String,DeviceCreationParameter*> AudioOutputDevice::DeviceParameters() { |
313 |
} |
} |
314 |
|
|
315 |
uint AudioOutputDevice::SendEffectChainCount() const { |
uint AudioOutputDevice::SendEffectChainCount() const { |
316 |
return vEffectChains.size(); |
return (uint) vEffectChains.size(); |
317 |
} |
} |
318 |
|
|
319 |
// TODO: to be removed |
// TODO: to be removed |