mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Fix warnings in Android platform
Fixes the following Clang 7 warnings: ``` platform/android/os_android.h:240:16: warning: 'OS_Android::native_video_play' hides overloaded virtual function [-Woverloaded-virtual] platform/android/os_android.h:241:15: warning: 'OS_Android::native_video_is_playing' hides overloaded virtual function [-Woverloaded-virtual] platform/android/audio_driver_opensl.cpp:104:3: warning: suggest braces around initialization of subobject [-Wmissing-braces] platform/android/audio_driver_opensl.cpp:129:10: warning: unused variable 'numOutputs' [-Wunused-variable] platform/android/audio_driver_opensl.cpp:130:11: warning: unused variable 'deviceID' [-Wunused-variable] platform/android/java_glue.cpp:795:10: warning: unused variable 'clsio' [-Wunused-variable] platform/android/java_glue.cpp:890:12: warning: unused variable 'gob' [-Wunused-variable] platform/android/java_glue.cpp:592:13: warning: unused variable 'resized' [-Wunused-variable] platform/android/java_glue.cpp:593:13: warning: unused variable 'resized_reload' [-Wunused-variable] modules/mobile_vr/mobile_vr_interface.cpp:401:8: warning: unused variable 'aspect_ratio' [-Wunused-variable] drivers/unix/dir_access_unix.cpp:394:2: warning: THIS IS BROKEN [-W#warnings] ```
This commit is contained in:
@@ -38,12 +38,7 @@
|
||||
/* Structure for passing information to callback function */
|
||||
|
||||
void AudioDriverOpenSL::_buffer_callback(
|
||||
SLAndroidSimpleBufferQueueItf queueItf
|
||||
/* SLuint32 eventFlags,
|
||||
const void * pBuffer,
|
||||
SLuint32 bufferSize,
|
||||
SLuint32 dataUsed*/
|
||||
) {
|
||||
SLAndroidSimpleBufferQueueItf queueItf) {
|
||||
|
||||
bool mix = true;
|
||||
|
||||
@@ -85,7 +80,6 @@ void AudioDriverOpenSL::_buffer_callbacks(
|
||||
|
||||
AudioDriverOpenSL *ad = (AudioDriverOpenSL *)pContext;
|
||||
|
||||
//ad->_buffer_callback(queueItf,eventFlags,pBuffer,bufferSize,dataUsed);
|
||||
ad->_buffer_callback(queueItf);
|
||||
}
|
||||
|
||||
@@ -98,12 +92,9 @@ const char *AudioDriverOpenSL::get_name() const {
|
||||
|
||||
Error AudioDriverOpenSL::init() {
|
||||
|
||||
SLresult
|
||||
res;
|
||||
SLresult res;
|
||||
SLEngineOption EngineOption[] = {
|
||||
(SLuint32)SL_ENGINEOPTION_THREADSAFE,
|
||||
(SLuint32)SL_BOOLEAN_TRUE
|
||||
|
||||
{ (SLuint32)SL_ENGINEOPTION_THREADSAFE, (SLuint32)SL_BOOLEAN_TRUE }
|
||||
};
|
||||
res = slCreateEngine(&sl, 1, EngineOption, 0, NULL, NULL);
|
||||
if (res != SL_RESULT_SUCCESS) {
|
||||
@@ -126,8 +117,6 @@ void AudioDriverOpenSL::start() {
|
||||
mutex = Mutex::create();
|
||||
active = false;
|
||||
|
||||
SLint32 numOutputs = 0;
|
||||
SLuint32 deviceID = 0;
|
||||
SLresult res;
|
||||
|
||||
buffer_size = 1024;
|
||||
|
||||
Reference in New Issue
Block a user