summaryrefslogtreecommitdiff
path: root/src/cmumble.c
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-19 08:29:51 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-12-04 12:11:08 +0100
commitf69a59ca61e1bc8dbbd14e67b48ac0fd35b93be3 (patch)
treeef0fcd23947f7121de5653492dbd2c6e2d198a09 /src/cmumble.c
parent0237dd789efd6ae676b6a599eaf823de2ef67349 (diff)
downloadcmumble-f69a59ca61e1bc8dbbd14e67b48ac0fd35b93be3.tar.gz
cmumble-f69a59ca61e1bc8dbbd14e67b48ac0fd35b93be3.tar.bz2
cmumble-f69a59ca61e1bc8dbbd14e67b48ac0fd35b93be3.zip
Fix buffer timestamps
* fix to start sequence at 0, if needed * do own buffer timestamping TODO: Sound is still choppy
Diffstat (limited to 'src/cmumble.c')
-rw-r--r--src/cmumble.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmumble.c b/src/cmumble.c
index 730695f..1ca18bb 100644
--- a/src/cmumble.c
+++ b/src/cmumble.c
@@ -51,7 +51,7 @@ recv_udp_tunnel(mumble_udptunnel_t *tunnel, struct cmumble *cm)
if (frame_len < 2)
break;
- cmumble_audio_push(cm, user, &data[pos], frame_len);
+ cmumble_audio_push(cm, user, &data[pos], frame_len, sequence);
pos += frame_len;
sequence++;
@@ -186,6 +186,7 @@ recv_user_state(mumble_user_state_t *state, struct cmumble *cm)
exit(1);
}
+ /* FIXME: Verify values, that need to be available. */
user->session = state->session;
user->name = g_strdup(state->name);
user->id = state->user_id;