comparison 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
comparison
equal deleted inserted replaced
118:26ad97b8aa9e 119:c692827083e1
131 for(int n=0; n<getNumChannels(); n++){ 131 for(int n=0; n<getNumChannels(); n++){
132 channels[n].setup(sampleRate, n, aPort, aServer); 132 channels[n].setup(sampleRate, n, aPort, aServer);
133 } 133 }
134 } 134 }
135 135
136 void Scope::setPort(int port){
137 for(int n=0; n<getNumChannels(); n++){
138 channels[n].setPort(port);
139 }
140 }
141 void Scope::setPort(int channel, int port){
142 channels[channel].setPort(port);
143 }
144
136 int Scope::getNumChannels(){ 145 int Scope::getNumChannels(){
137 return channels.size(); 146 return channels.size();
138 } 147 }
139 148
140 void Scope::sendData(){ 149 void Scope::sendData(){