Bug 943618 - complete audio silence with some USB headsets, r=padenot.

This commit is contained in:
Florian Quèze 2014-01-31 16:16:09 +01:00
Родитель e272dd0b19
Коммит e01ffd58d0
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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));