Browse Source

Correct JackNetExtMaster::Read.

tags/v1.9.10
Stephane Letz 11 years ago
parent
commit
ce122e683a
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      common/JackNetAPI.cpp

+ 6
- 0
common/JackNetAPI.cpp View File

@@ -350,6 +350,12 @@ struct JackNetExtMaster : public JackNetMasterInterface {
switch (res) {
case NET_SYNCHING:
// Data will not be received, so cleanup buffers...
for (int audio_port_index = 0; audio_port_index < audio_input; audio_port_index++) {
memset(audio_input_buffer[audio_port_index], 0, sizeof(float) * fParams.fPeriodSize);
}
return res;
case SOCKET_ERROR:
return res;


Loading…
Cancel
Save