summaryrefslogtreecommitdiff
path: root/toxav/audio.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-11-03 13:42:05 -0500
committerirungentoo <irungentoo@gmail.com>2015-11-03 13:42:05 -0500
commit6a494e2cbdd146bb13185d8220061322661a5f5a (patch)
tree6cb23bca09894cde6173bc7a362a112d72872215 /toxav/audio.c
parentf435e94397feb3121ef334de6873b93adaaf01dd (diff)
Astyle.
Diffstat (limited to 'toxav/audio.c')
-rw-r--r--toxav/audio.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/toxav/audio.c b/toxav/audio.c
index 4f9d3562..ad543502 100644
--- a/toxav/audio.c
+++ b/toxav/audio.c
@@ -76,11 +76,11 @@ ACSession *ac_new(ToxAV *av, uint32_t friend_number, toxav_audio_receive_frame_c
76 76
77 if (ac->encoder == NULL) 77 if (ac->encoder == NULL)
78 goto DECODER_CLEANUP; 78 goto DECODER_CLEANUP;
79 79
80 ac->le_bit_rate = 48000; 80 ac->le_bit_rate = 48000;
81 ac->le_sample_rate = 48000; 81 ac->le_sample_rate = 48000;
82 ac->le_channel_count = 2; 82 ac->le_channel_count = 2;
83 83
84 ac->ld_channel_count = 2; 84 ac->ld_channel_count = 2;
85 ac->ld_sample_rate = 48000; 85 ac->ld_sample_rate = 48000;
86 ac->ldrts = 0; /* Make it possible to reconfigure straight away */ 86 ac->ldrts = 0; /* Make it possible to reconfigure straight away */
@@ -126,7 +126,7 @@ void ac_iterate(ACSession *ac)
126 return; 126 return;
127 127
128 /* TODO fix this and jitter buffering */ 128 /* TODO fix this and jitter buffering */
129 129
130 /* Enough space for the maximum frame size (120 ms 48 KHz stereo audio) */ 130 /* Enough space for the maximum frame size (120 ms 48 KHz stereo audio) */
131 int16_t tmp[5760 * 2]; 131 int16_t tmp[5760 * 2];
132 132
@@ -221,9 +221,9 @@ int ac_queue_message(void *acp, struct RTPMessage *msg)
221} 221}
222int ac_reconfigure_encoder(ACSession *ac, int32_t bit_rate, int32_t sampling_rate, uint8_t channels) 222int ac_reconfigure_encoder(ACSession *ac, int32_t bit_rate, int32_t sampling_rate, uint8_t channels)
223{ 223{
224 if (!ac || !reconfigure_audio_encoder(&ac->encoder, bit_rate, 224 if (!ac || !reconfigure_audio_encoder(&ac->encoder, bit_rate,
225 sampling_rate, channels, 225 sampling_rate, channels,
226 &ac->le_bit_rate, 226 &ac->le_bit_rate,
227 &ac->le_sample_rate, 227 &ac->le_sample_rate,
228 &ac->le_channel_count)) 228 &ac->le_channel_count))
229 return -1; 229 return -1;