diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/android/cubeb-output-latency.h | 3 | ||||
-rw-r--r-- | src/android/cubeb_media_library.h | 10 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/android/cubeb-output-latency.h b/src/android/cubeb-output-latency.h index f8ee0e2..403276a 100644 --- a/src/android/cubeb-output-latency.h +++ b/src/android/cubeb-output-latency.h @@ -19,7 +19,7 @@ output_latency_function * cubeb_output_latency_load_method(int version) { output_latency_function * ol = NULL; - ol = (output_latency_function*) calloc(1, sizeof(output_latency_function)); + ol = (output_latency_function *)calloc(1, sizeof(output_latency_function)); ol->version = version; @@ -74,7 +74,6 @@ cubeb_get_output_latency(output_latency_function * ol) return cubeb_get_output_latency_from_media_library(ol->from_lib); } - } #endif // _CUBEB_OUTPUT_LATENCY_H_ diff --git a/src/android/cubeb_media_library.h b/src/android/cubeb_media_library.h index c7aecc5..a54427b 100644 --- a/src/android/cubeb_media_library.h +++ b/src/android/cubeb_media_library.h @@ -1,7 +1,7 @@ -#include <dlfcn.h> -#include <stdlib.h> #include <cassert> #include <cstdint> +#include <dlfcn.h> +#include <stdlib.h> #ifndef _CUBEB_MEDIA_LIBRARY_H_ #define _CUBEB_MEDIA_LIBRARY_H_ @@ -32,15 +32,15 @@ cubeb_load_media_library() if (!ml.get_output_latency) { // In case of failure, try the signature from legacy version. // status_t AudioSystem::getOutputLatency(uint32_t* latency, int streamType) - ml.get_output_latency = - (get_output_latency_ptr)dlsym(ml.libmedia, "_ZN7android11AudioSystem16getOutputLatencyEPji"); + ml.get_output_latency = (get_output_latency_ptr)dlsym( + ml.libmedia, "_ZN7android11AudioSystem16getOutputLatencyEPji"); if (!ml.get_output_latency) { return nullptr; } } media_lib * rv = nullptr; - rv = (media_lib*) calloc(1, sizeof(media_lib)); + rv = (media_lib *)calloc(1, sizeof(media_lib)); assert(rv); *rv = ml; return rv; |