1 |
// qsamplerChannel.cpp |
// qsamplerChannel.cpp |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2006, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
7 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
639 |
|
|
640 |
// Set the audio routing map. |
// Set the audio routing map. |
641 |
m_audioRouting.clear(); |
m_audioRouting.clear(); |
642 |
char **ppszRouting = pChannelInfo->audio_routing; |
#ifdef CONFIG_AUDIO_ROUTING |
643 |
for (int i = 0; ppszRouting && ppszRouting[i]; i++) { |
int *piAudioRouting = pChannelInfo->audio_routing; |
644 |
m_audioRouting[i] = ::atoi(ppszRouting[i]); |
for (int i = 0; piAudioRouting && piAudioRouting[i] >= 0; i++) |
645 |
} |
m_audioRouting[i] = piAudioRouting[i]; |
646 |
|
#else |
647 |
|
char **ppszAudioRouting = pChannelInfo->audio_routing; |
648 |
|
for (int i = 0; ppszAudioRouting && ppszAudioRouting[i]; i++) |
649 |
|
m_audioRouting[i] = ::atoi(ppszAudioRouting[i]); |
650 |
|
#endif |
651 |
|
|
652 |
return true; |
return true; |
653 |
} |
} |