We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4132024 commit 95094fcCopy full SHA for 95094fc
src/AudioTools/AudioCodecs/ContainerOSC.h
@@ -61,7 +61,7 @@ class OSCContainerEncoder : public AudioEncoder {
61
/// Add data segment. On first write we also add a AudioInfo header
62
size_t write(const uint8_t *data, size_t len) {
63
LOGD("OSCContainerEncoder::write: %d", (int)len);
64
- if (packet_count % repeat_info == 0) {
+ if ((repeat_info > 0) && (packet_count % repeat_info == 0)) {
65
writeAudioInfo();
66
}
67
writeAudio(data, len);
0 commit comments