#29470·xbmc

Android: repeated seeks with passthrough cause persistent audio stutter and eventual playback degradation (AudioTrack RAW)

Author: TheMightyD47Created Sep 30, 2026Updated Sep 30, 2026
LabelsTriage: Needed

Bug report

Describe the bug

On a Hisense Vidda C3s projector running the vendor Vida Android firmware (AOSP-based Android 14), repeated seeking in Kodi causes audio playback to enter a bad state when using Android AudioTrack passthrough.

The first symptom is usually recurring short audio dropouts/stutter after a seek. After several seeks (typically around 5-6 in my testing), playback progressively degrades further: buffering becomes much more frequent and video/audio can eventually stall or freeze.

The problem is reproducible with multiple local media files streamed over SMB from a CoreELEC server. A clean Kodi profile also reproduced the problem, so it is not dependent on my normal skin/add-ons configuration.

Most importantly, I tested the same projector, the same Sony ARC audio system, the same network/server and the same media library with native Plex and Emby Android TV clients. Repeated seeking is smooth there and the audio remains clean without the periodic dropouts. This makes the media files, SMB server, network and AVR much less likely to be the root cause.

The Android build identifies itself to applications as Hisense VIDAA_TV, but the projector OS is Vida, Hisense/Vidda's vendor-modified AOSP Android firmware, not the separate VIDAA operating system.

Expected Behavior

After a seek, playback should resume normally with stable audio. Repeated seeks should not accumulate state or progressively degrade playback.

Actual Behavior

A typical failure sequence is:

  1. Start an SMB video with passthrough enabled.
  2. Seek forward/backward several times.
  3. After a seek, audio may begin to cut out briefly at regular intervals (roughly every few seconds).
  4. Additional seeks make the behavior worse.
  5. After roughly 5-6 seeks in a bad run, Kodi starts buffering/freezing and playback can become unusable.
  6. A long pause / audio sink recreation can sometimes temporarily recover playback, but subsequent seeking can trigger the problem again. In worse runs Kodi/device restart is needed to fully clear the state.

The failure is not a simple SMB throughput problem. Plex and Emby Direct Play the same media on the same projector/network/audio chain and tolerate repeated seeking without this degradation.

Possible Fix

The debug log strongly suggests that the Android RAW AudioTrack / ActiveAE state after seek deserves investigation.

Around the failing seeks Kodi repeatedly reports unavailable timestamps and ~1 second or larger ActiveAE sync errors. The sink is using AudioTrack (RAW) / AE_FMT_RAW, and sink recreation can temporarily restore clean playback.

This looks related to the lifecycle/flush/resync of the passthrough AudioTrack after a seek rather than to the network cache itself.

There may be some relation to older reports such as #21213 (audio loss/freeze while seeking with passthrough on Android) and #27690 (audio stutter after seeking on Android), although this is reproducible on a different device and current Kodi build.

To Reproduce

  1. Use Kodi on Hisense Vidda C3s / Android 14.
  2. Play an AC3/E-AC3 video over SMB.
  3. Enable passthrough and use the Android RAW AudioTrack output path.
  4. Seek forward/backward repeatedly, allowing playback to resume between seeks.
  5. Listen for recurring short audio interruptions after seeking.
  6. Continue seeking several more times; in a bad run playback progressively buffers/stalls/freezes.

I have reproduced this with TV episodes and larger movie files. One debug session used an SMB episode of The Orville with Dolby Digital Plus / AC3-family audio.

Debuglog

A full debug log was captured (kodi_next_0s_vs_10s.log, ~1.1 MB). I do not yet have a public paste URL for the complete file, but the relevant failure sequence is included below and I can provide the full log if required.

Environment header from the log:

Starting Kodi (21.3 (21.3.0) Git:20251031-a3a448d26b). Platform: Android ARM 64-bit
Running on Hisense VIDAA_TV with Android TV 14.0.0 API level 34, kernel: Linux ARM 64-bit version 5.15.148-android14-11-g7b7674251b5d-dirty
FFmpeg version/source: 6.0.1-Kodi
4 CPU cores available
Product: VIDAA_TV, Device: MT9655, Board: LASER_MICRO - Manufacturer: Hisense, Brand: Hisense, Model: VIDAA_TV, Hardware: mt9952

RAW passthrough sink initialization:

CActiveAESink::OpenSink - trying to open device AUDIOTRACK:AudioTrack (RAW)
CAESinkAUDIOTRACK::Initialize requested: sampleRate 48000; format: AE_FMT_RAW; channels: 6
Trying to open: samplerate: 48000, channelMask: 12, encoding: 5

During/after seeking:

SeekTime - seek ended up on time 2502
demuxer seek to: 3048.000000, success
CVideoPlayer::FlushBuffers - flushing buffers
CDVDVideoCodecAndroidMediaCodec::Reset Current state (2)
CDVDAudio::Flush - flush audio stream
CDVDAudio::Pause - pausing audio stream

Another seek/sink transition:

CFileCache::Process - <smb://192.168.1.111/External/TV_SHOWS/...mkv> source read hit eof
SeekTime - seek ended up on time 167
demuxer seek to: 0.000000, success
CVideoPlayer::FlushBuffers - flushing buffers
CDVDVideoCodecAndroidMediaCodec::Reset Current state (3)
CDVDAudio::Pause - pausing audio stream
Draining Audio
CDVDAudio::Flush - flush audio stream

The bad audio state contains repeated timestamp failures and large sync errors:

Could not acquire timestamp
ActiveAE - large audio sync error: 1022.685667
ActiveAE - large audio sync error: 1052.303501
ActiveAE - large audio sync error: 1113.858001
ActiveAE - large audio sync error: 1143.324251
ActiveAE - large audio sync error: 1172.409751
ActiveAE - large audio sync error: 1203.164501
...
Could not acquire timestamp
ActiveAE - large audio sync error: 1007.986334
ActiveAE - large audio sync error: 1039.086167
ActiveAE - large audio sync error: 1070.204584
ActiveAE - large audio sync error: 1100.984084
ActiveAE - large audio sync error: 1131.120084
ActiveAE - large audio sync error: 1162.188251
ActiveAE - large audio sync error: 1193.398084
ActiveAE - large audio sync error: 1224.648084

Another captured event immediately after playback/seek showed:

CAEStreamParser::TrySyncAC3 - AC3 stream detected (6 channels, 48000Hz)
CActiveAEStream::AddData - messy timestamps, increasing interval for measuring average error to 6000 ms
CActiveAESink::OpenSink - initialize sink
Trying to open: samplerate: 48000, channelMask: 12, encoding: 5
Created Audiotrackbuffer with playing time of 256.000000 ms min buffer size: 40960 bytes
CAESinkAUDIOTRACK::Initializing with: m_sampleRate: 48000 format: AE_FMT_RAW (AE) method: RAW (PT) stream-type: STREAM_TYPE_AC3

Screenshots

No screenshot is particularly useful because the primary symptom is audible stutter/dropout and progressive playback degradation.

Additional context or screenshots (if appropriate)

Setup:

  • Media server: Ugoos X4Q Cube running CoreELEC
  • Media source: USB HDD attached to CoreELEC
  • Transport: SMB over local Ethernet/LAN
  • Projector: Hisense Vidda C3s
  • Projector OS: Vida, vendor-modified AOSP Android 14
  • Audio: projector HDMI ARC -> Sony BDV-IZ1000W
  • Projector audio output: Pass Through
  • Kodi passthrough: enabled
  • Typical enabled passthrough formats during testing: AC3, E-AC3 and DTS; TrueHD/DTS-HD disabled in the main test configuration
  • Kodi log shows AudioTrack (RAW) / AE_FMT_RAW

Troubleshooting already performed:

  • Reproduced with more than one media file.
  • Reproduced on a clean Kodi profile.
  • Changed Kodi network/cache parameters and SMB block sizes; this did not eliminate the audio failure.
  • Tested different passthrough-related settings during diagnosis.
  • Same projector + same Sony ARC chain + same network + same media library were tested with Emby and Plex Android TV clients. Both have clean audio and excellent seek behavior, including repeated seeking.
  • The CoreELEC/SMB server remains capable of serving the same files correctly to those clients.

Kodi 22.0-BETA1 (21.90.801) was also used during the investigation and the same general seek/audio problem was observed, although the debug excerpt above is from Kodi 21.3.

Your Environment

Used Operating system:

  • Android

  • iOS

  • tvOS

  • Linux

  • macOS

  • Windows

  • Windows UWP

  • Operating system version/name: Vida (Hisense/Vidda vendor-modified AOSP Android 14, API 34; build identifies itself as VIDAA_TV)

  • Kodi version: 21.3 (21.3.0) Git:20251031-a3a448d26b; also observed during testing on 22.0-BETA1 (21.90.801)

I can provide the complete debug log and additional ADB/logcat captures if needed.