Mercurial > hg > beaglert
diff core/NetworkSend.cpp @ 119:c692827083e1 scope-refactoring
Enabled multi channel audio receive
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Fri, 21 Aug 2015 15:21:34 +0100 |
parents | 8341df5e404b |
children | cdd441a304a9 |
line wrap: on
line diff
--- a/core/NetworkSend.cpp Fri Aug 21 14:37:19 2015 +0100 +++ b/core/NetworkSend.cpp Fri Aug 21 15:21:34 2015 +0100 @@ -133,6 +133,15 @@ } } +void Scope::setPort(int port){ + for(int n=0; n<getNumChannels(); n++){ + channels[n].setPort(port); + } +} +void Scope::setPort(int channel, int port){ + channels[channel].setPort(port); +} + int Scope::getNumChannels(){ return channels.size(); }