2022-09-18 12:04:18 +01:00
|
|
|
#include <gui/SurfaceComposerClient.h>
|
2022-09-18 12:00:49 +01:00
|
|
|
#include <media/AudioTrack.h>
|
2022-09-18 12:15:27 +01:00
|
|
|
#include <media/stagefright/MediaMuxer.h>
|
2022-09-18 12:00:49 +01:00
|
|
|
|
|
|
|
|
using namespace android;
|
|
|
|
|
|
|
|
|
|
extern "C" {
|
2022-09-18 12:06:14 +01:00
|
|
|
void _ZN7android10AudioTrackC1E19audio_stream_type_tj14audio_format_t20audio_channel_mask_tj20audio_output_flags_tPFviPvS5_ES5_i15audio_session_tNS0_13transfer_typeEPK20audio_offload_info_tRKNS_7content22AttributionSourceStateEPK18audio_attributes_tbfi(
|
|
|
|
|
void* thisptr,
|
|
|
|
|
audio_stream_type_t streamType,
|
|
|
|
|
uint32_t sampleRate,
|
|
|
|
|
audio_format_t format,
|
|
|
|
|
audio_channel_mask_t channelMask,
|
|
|
|
|
size_t frameCount,
|
|
|
|
|
audio_output_flags_t flags,
|
2022-10-01 15:50:01 +01:00
|
|
|
android::AudioTrack::legacy_callback_t cbf,
|
2022-09-18 12:06:14 +01:00
|
|
|
void* user,
|
|
|
|
|
int32_t notificationFrames,
|
|
|
|
|
audio_session_t sessionId,
|
|
|
|
|
android::AudioTrack::transfer_type transferType,
|
|
|
|
|
const audio_offload_info_t *offloadInfo,
|
|
|
|
|
const AttributionSourceState& attributionSource,
|
|
|
|
|
const audio_attributes_t* pAttributes,
|
|
|
|
|
bool doNotReconnect,
|
|
|
|
|
float maxRequiredSpeed,
|
|
|
|
|
audio_port_handle_t selectedDeviceId);
|
|
|
|
|
|
2022-09-18 12:00:49 +01:00
|
|
|
void _ZN7android10AudioTrackC1E19audio_stream_type_tj14audio_format_tjj20audio_output_flags_tPFviPvS4_ES4_i15audio_session_tNS0_13transfer_typeEPK20audio_offload_info_tjiPK18audio_attributes_tbfi(
|
2022-09-18 12:06:14 +01:00
|
|
|
void* thisptr,
|
2022-09-18 12:00:49 +01:00
|
|
|
audio_stream_type_t streamType,
|
|
|
|
|
uint32_t sampleRate,
|
|
|
|
|
audio_format_t format,
|
|
|
|
|
audio_channel_mask_t channelMask,
|
|
|
|
|
size_t frameCount,
|
|
|
|
|
audio_output_flags_t flags,
|
2022-10-01 15:50:01 +01:00
|
|
|
android::AudioTrack::legacy_callback_t cbf,
|
2022-09-18 12:00:49 +01:00
|
|
|
void* user,
|
|
|
|
|
int32_t notificationFrames,
|
|
|
|
|
audio_session_t sessionId,
|
|
|
|
|
android::AudioTrack::transfer_type transferType,
|
|
|
|
|
const audio_offload_info_t *offloadInfo,
|
|
|
|
|
uid_t uid,
|
|
|
|
|
pid_t pid,
|
|
|
|
|
const audio_attributes_t* pAttributes,
|
|
|
|
|
bool doNotReconnect,
|
|
|
|
|
float maxRequiredSpeed,
|
|
|
|
|
audio_port_handle_t selectedDeviceId) {
|
2022-09-18 12:13:15 +01:00
|
|
|
AttributionSourceState attributionSource;
|
|
|
|
|
attributionSource.uid = uid;
|
|
|
|
|
attributionSource.pid = pid;
|
|
|
|
|
attributionSource.packageName = "com.mediatek.ims";
|
2023-04-18 17:22:14 +02:00
|
|
|
attributionSource.token = android::sp<android::BBinder>::make();
|
|
|
|
|
attributionSource.attributionTag = std::nullopt;
|
2022-09-18 12:06:14 +01:00
|
|
|
_ZN7android10AudioTrackC1E19audio_stream_type_tj14audio_format_t20audio_channel_mask_tj20audio_output_flags_tPFviPvS5_ES5_i15audio_session_tNS0_13transfer_typeEPK20audio_offload_info_tRKNS_7content22AttributionSourceStateEPK18audio_attributes_tbfi(
|
|
|
|
|
thisptr, streamType, sampleRate, format, channelMask, frameCount, flags, cbf,
|
|
|
|
|
user, notificationFrames, sessionId, transferType, offloadInfo,
|
|
|
|
|
attributionSource, pAttributes, doNotReconnect, maxRequiredSpeed, selectedDeviceId);
|
|
|
|
|
}
|
2022-09-18 12:04:18 +01:00
|
|
|
|
|
|
|
|
void _ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEbRKNS1_INS_7IBinderEEE(
|
|
|
|
|
void* thisptr, const sp<IGraphicBufferProducer>& bufferProducer, bool controlledByApp, const sp<IBinder>& surfaceControlHandle);
|
|
|
|
|
|
|
|
|
|
void _ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEb(
|
|
|
|
|
void* thisptr, const sp<IGraphicBufferProducer> &bufferProducer, bool controlledByApp) {
|
|
|
|
|
_ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEbRKNS1_INS_7IBinderEEE(thisptr, bufferProducer, controlledByApp, nullptr);
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-18 12:15:27 +01:00
|
|
|
void _ZN7android10MediaMuxerC1EiNS_14MediaMuxerBase12OutputFormatE(void* thisptr, int fd, android::MediaMuxer::OutputFormat format);
|
|
|
|
|
|
|
|
|
|
void _ZN7android10MediaMuxerC1EiNS0_12OutputFormatE(void* thisptr, int fd, android::MediaMuxer::OutputFormat format) {
|
|
|
|
|
_ZN7android10MediaMuxerC1EiNS_14MediaMuxerBase12OutputFormatE(thisptr, fd, format);
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-18 12:00:49 +01:00
|
|
|
}
|