diff options
| -rw-r--r-- | src/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -115,6 +115,14 @@ int main() i = 0; } + // remove till end if you dont care about sending a clear to chat box when stopping the program. + + usleep(900000); // if 2 messages are sent to quickly. this one doesnt send. so this seems like a good delay on my machine. comment out if you dont care + int len = 0; + len = tosc_writeMessage(wbuffer, sizeof(wbuffer), "/chatbox/input", "sTF", ""); + sendto(socketfd, wbuffer, len, MSG_CONFIRM, (const struct sockaddr*)&servaddr, sizeof(servaddr)); + // end + free(comb_string); free(dist); free(song_title); |
