Bug 1641579 - Update cubeb to 4cd6a92. r=cubeb-reviewers,achronop

4cd6a92 - CI: add FreeBSD jobs
eecb589 - QueryPerformanceCounter returns non-zero in case of success
524a9c9 - sun: Fix arithmetic on void pointer.

Differential Revision: https://phabricator.services.mozilla.com/D77264
This commit is contained in:
Paul Adenot 2020-05-28 14:25:20 +00:00
parent a660a58553
commit 0ae2549e51
3 changed files with 7 additions and 7 deletions

View File

@ -19,5 +19,5 @@ origin:
license: "ISC"
# update.sh will update this value
release: "80c3d838d2929c2783065ef1eb686dda98e05df4 (2020-05-07 17:49:36 +0200)"
release: "4cd6a9289f3b0e86bae58c0de9ef35e3f7339536 (2020-05-25 17:36:37 +1200)"

View File

@ -473,7 +473,7 @@ sun_io_routine(void * arg)
if (to_write > 0) {
bytes = to_write * s->play.frame_size;
if ((n = write(s->play.fd, s->play.buf + write_ofs, bytes)) < 0) {
if ((n = write(s->play.fd, (uint8_t *)s->play.buf + write_ofs, bytes)) < 0) {
state = CUBEB_STATE_ERROR;
break;
}
@ -482,17 +482,17 @@ sun_io_routine(void * arg)
s->frames_written += frames;
pthread_mutex_unlock(&s->mutex);
to_write -= frames;
write_ofs += frames;
write_ofs += n;
}
if (to_read > 0) {
bytes = to_read * s->record.frame_size;
if ((n = read(s->record.fd, s->record.buf + read_ofs, bytes)) < 0) {
if ((n = read(s->record.fd, (uint8_t *)s->record.buf + read_ofs, bytes)) < 0) {
state = CUBEB_STATE_ERROR;
break;
}
frames = n / s->record.frame_size;
to_read -= frames;
read_ofs += frames;
read_ofs += n;
}
}
if (drain && state != CUBEB_STATE_ERROR) {

View File

@ -1549,10 +1549,10 @@ int wasapi_init(cubeb ** context, char const * context_name)
LARGE_INTEGER frequency;
if (QueryPerformanceFrequency(&frequency)) {
ctx->performance_counter_frequency = frequency.QuadPart;
} else {
LOG("Failed getting performance counter frequency, latency reporting will be inacurate");
ctx->performance_counter_frequency = 0;
} else {
ctx->performance_counter_frequency = frequency.QuadPart;
}
*context = ctx;