Skip to content

Commit

Permalink
Fix Android build.
Browse files Browse the repository at this point in the history
No idea how it built before (?!)
  • Loading branch information
Themaister committed Mar 2, 2014
1 parent 2d83134 commit a098129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audio/opensl.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency)
else
sl->buf_size = next_pow2(32 * latency);

sl->buf_count = (latency * 4 * out_rate + 500) / 1000;
sl->buf_count = (latency * 4 * rate + 500) / 1000;
sl->buf_count = (sl->buf_count + sl->buf_size / 2) / sl->buf_size;

sl->buffer = (uint8_t**)calloc(sizeof(uint8_t*), sl->buf_count);
Expand Down

0 comments on commit a098129

Please sign in to comment.