diff options
author | Paul Adenot <[email protected]> | 2023-08-17 17:25:12 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2023-08-25 20:09:58 +0200 |
commit | cd4effa91a990c3bfa7ffbb7fd0aa0438b82d6ed (patch) | |
tree | d19522079fa7089eea73c98e0bb1f9dec77fef4d | |
parent | 510266b364814d868472996c2645869ebfe01738 (diff) | |
download | cubeb-cd4effa91a990c3bfa7ffbb7fd0aa0438b82d6ed.tar.gz cubeb-cd4effa91a990c3bfa7ffbb7fd0aa0438b82d6ed.zip |
OpenSLES and related file: clang-format
-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; |