commit | ace1eebfc6a3b85a7100208a402a0dcc38909e61 | [log] [tgz] |
---|---|---|
author | Dean Wheatley <dwhea@dolby.com> | Mon Nov 06 21:58:14 2023 +1100 |
committer | Dean Wheatley <dwhea@dolby.com> | Thu Nov 16 05:57:57 2023 +1100 |
tree | 571f320cbc45efb65d92b03c97b7c192efb99c7c | |
parent | e992ba89991229b19906f7308392532ed06851fd [diff] [blame] |
Add tee sink to SpdifStreamOut Test: enable per https://source.android.com/docs/core/audio/debugging play ac3 track via SpdifStreamOut using AudioTrackSurroundTest#testPlayAC3Bytes dumpsys media.audio_flinger and see .raw iec61937 wrapped file in /data/misc/audioserver. Change-Id: I65ccd9d8a5b92ef7ffc87e081095d8f7332d8acb
diff --git a/services/audioflinger/datapath/SpdifStreamOut.h b/services/audioflinger/datapath/SpdifStreamOut.h index c8dc89f..1640575 100644 --- a/services/audioflinger/datapath/SpdifStreamOut.h +++ b/services/audioflinger/datapath/SpdifStreamOut.h
@@ -25,6 +25,7 @@ #include "AudioStreamOut.h" +#include <afutils/NBAIO_Tee.h> #include <audio_utils/spdif/SPDIFEncoder.h> namespace android { @@ -116,6 +117,10 @@ ssize_t writeDataBurst(const void* data, size_t bytes); ssize_t writeInternal(const void* buffer, size_t bytes); +#ifdef TEE_SINK + NBAIO_Tee mTee; +#endif + }; } // namespace android