ratox

FIFO based tox client
git clone git://git.2f30.org/ratox.git
Log | Files | Refs | README | LICENSE

commit 60ac100f5b88bb3c518bc712e8be7dac1355ae17
parent 267c56c41afbee3923e5f4127acd436c4eb9c44f
Author: FRIGN <dev@frign.de>
Date:   Sat Nov  1 11:41:21 +0100

Don't assume mono-audio in defaults

Diffstat:
ratox.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ratox.c b/ratox.c @@ -1220,7 +1220,8 @@ toxinit(void) eprintf("Failed to initialize toxav\n"); toxavconfig = av_DefaultSettings; - framesize = (toxavconfig.audio_sample_rate * toxavconfig.audio_frame_duration / 1000); + framesize = (toxavconfig.audio_sample_rate * toxavconfig.audio_frame_duration * + toxavconfig.audio_channels) / 1000; tox_callback_connection_status(tox, cbconnstatus, NULL); tox_callback_friend_message(tox, cbfriendmessage, NULL);