зеркало из https://github.com/mozilla/gecko-dev.git
Bug 986793 - Fix warnings in cubeb_audiotrack.c, and allow mixed declaration and code in cubeb_opensl.c. r=cpeterson
--HG-- extra : rebase_source : 91856a5c76063be3d6c180abe34cda5cee9f3d71
This commit is contained in:
Родитель
b5d2d427e6
Коммит
fdf771928d
|
@ -314,7 +314,7 @@ audiotrack_get_preferred_sample_rate(cubeb * ctx, uint32_t * rate)
|
|||
{
|
||||
status_t rv;
|
||||
|
||||
rv = ctx->klass.get_output_samplingrate(rate, 3 /* MUSIC */);
|
||||
rv = ctx->klass.get_output_samplingrate((int32_t *)rate, 3 /* MUSIC */);
|
||||
|
||||
return rv == 0 ? CUBEB_OK : CUBEB_ERROR;
|
||||
}
|
||||
|
@ -338,7 +338,7 @@ audiotrack_stream_init(cubeb * ctx, cubeb_stream ** stream, char const * stream_
|
|||
{
|
||||
cubeb_stream * stm;
|
||||
int32_t channels;
|
||||
int32_t min_frame_count;
|
||||
uint32_t min_frame_count;
|
||||
|
||||
assert(ctx && stream);
|
||||
|
||||
|
|
|
@ -295,7 +295,7 @@ opensl_get_min_latency(cubeb * ctx, cubeb_stream_params params, uint32_t * laten
|
|||
int rv;
|
||||
void * libmedia;
|
||||
size_t (*get_primary_output_frame_count)(void);
|
||||
int (*get_output_frame_count)(int * frameCount, int streamType);
|
||||
int (*get_output_frame_count)(size_t * frameCount, int streamType);
|
||||
uint32_t primary_sampling_rate;
|
||||
size_t primary_buffer_size;
|
||||
|
||||
|
|
|
@ -43,9 +43,8 @@ if CONFIG['OS_TARGET'] == 'WINNT':
|
|||
DEFINES['USE_WASAPI'] = True
|
||||
|
||||
if CONFIG['OS_TARGET'] == 'Android':
|
||||
SOURCES += [
|
||||
'cubeb_opensl.c',
|
||||
]
|
||||
SOURCES += ['cubeb_opensl.c']
|
||||
SOURCES['cubeb_opensl.c'].flags += ['-Wno-declaration-after-statement']
|
||||
DEFINES['USE_OPENSL'] = True
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
|
||||
SOURCES += [
|
||||
|
|
Загрузка…
Ссылка в новой задаче