зеркало из https://github.com/mozilla/gecko-dev.git
Bug 943618 - complete audio silence with some USB headsets, r=padenot.
This commit is contained in:
Родитель
e272dd0b19
Коммит
e01ffd58d0
|
@ -420,6 +420,9 @@ audiounit_stream_init(cubeb * context, cubeb_stream ** stream, char const * stre
|
|||
return CUBEB_ERROR;
|
||||
}
|
||||
|
||||
// Setting the latency doesn't work well for USB headsets (eg. plantronics).
|
||||
// Keep the default latency for now.
|
||||
#if 0
|
||||
if (buffer_size < default_buffer_size) {
|
||||
/* Set the maximum number of frame that the render callback will ask for,
|
||||
* effectively setting the latency of the stream. This is process-wide. */
|
||||
|
@ -430,6 +433,7 @@ audiounit_stream_init(cubeb * context, cubeb_stream ** stream, char const * stre
|
|||
return CUBEB_ERROR;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
r = AudioUnitSetProperty(stm->unit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input,
|
||||
0, &ss, sizeof(ss));
|
||||
|
|
Загрузка…
Ссылка в новой задаче