Files
device_xiaomi_rosemary/libshims/Android.bp
R0rt1z2 79e98e94d5 rosemary: libshim_sink: Port to U
* Since commit eb57617 [1], the legacy callback interfaces in the Android
  AudioTrack system have been deprecated and replaced by a newer callback
  interface. Consequently, the user parameter, which was previously part
  of the constructor, has been incorporated into this new interface.

* To address the resulting build issues, update the function signatures
  to match the new methods. Although AOSP provides a wrapper [2] for this
  purpose, it's declared within an anonymous namespace, effectively making
  it private to its own translation unit. To work around this limitation,
  provide a local copy of the wrapper instead.

* Also format the shim with `clang-format`.

- [1]: eb57617e55
- [2]: https://cs.android.com/android/platform/superproject/main/+/main:frameworks/av/media/libaudioclient/AudioTrack.cpp;l=289;bpv=1

Change-Id: Ieae7df3f5f003538a0319cc77051322a989b93a8
2024-02-19 11:43:29 +01:00

27 lines
500 B
Plaintext

cc_library_shared {
name: "libshim_showlogo",
srcs: ["libshim_showlogo.cpp"],
shared_libs: [
"libui",
]
}
cc_library_shared {
name: "libshim_sink",
srcs: ["libshim_sink.cpp"],
compile_multilib: "64",
shared_libs: [
"libaudioclient",
"libgui",
"libstagefright",
"libutils",
"libbinder",
],
header_libs: [
"libaudioclient_headers",
"libmedia_headers",
"libmediametrics_headers",
],
}