mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
a660a58553
commit
0ae2549e51
@ -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)"
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user