You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using ConcatenatingMedia to play FLAC tracks, an issue appears when switching from 24bit to 16bit source. The 16bit source is overlayed with static and noise. The issue persists when switching to other 16bit sources. Static is gone once we switch to a 24bit source or reset the player.
This only happens for sources that have a sample rate of 44.1KHz.
During the static, following error is repeatedly logged: AudioTrack: Discontinuity detected [expected 'some value', got 'some other valuej']
EDIT:
After additional investigation, I've found out that LibflacAudioRenderer always returns FORMAT_UNSUPPORTED_TYPE when supportsFormatInternal method is called. That is because format.sampleMimeType is "audio/raw". Therefore FlacDecoder is never created. Any advice?
And for additional info, here's my ExoPlayer construction:
SimpleExoPlayer exoPlayer = ExoPlayerFactory.newSimpleInstance(context,
createRenderersFactory(context),
new DefaultTrackSelector());
DataSource.Factory dataSourceFactory = new DefaultDataSourceFactory(context, Util.getUserAgent(context, "ExoPlayerTest"));
Creating RenderersFactory instance. (I've tried various options here, all lead to same results).
Issue description
Using ConcatenatingMedia to play FLAC tracks, an issue appears when switching from 24bit to 16bit source. The 16bit source is overlayed with static and noise. The issue persists when switching to other 16bit sources. Static is gone once we switch to a 24bit source or reset the player.
This only happens for sources that have a sample rate of 44.1KHz.
During the static, following error is repeatedly logged:
AudioTrack: Discontinuity detected [expected 'some value', got 'some other valuej']
EDIT:
After additional investigation, I've found out that
LibflacAudioRenderer
always returnsFORMAT_UNSUPPORTED_TYPE
whensupportsFormatInternal
method is called. That is because format.sampleMimeType is "audio/raw". Therefore FlacDecoder is never created. Any advice?And for additional info, here's my ExoPlayer construction:
Creating RenderersFactory instance. (I've tried various options here, all lead to same results).
Creating MediaSources for ConcatenatingMediaSource:
A full bug report captured from the device
logcat.txt
Version of ExoPlayer being used
ExoPlayerLib/2.10.1 with FLAC extension.
Device(s) and version(s) of Android being used
Samsung S9, Android 9
Pixel XL, Android 10,
LG L-03K, Android 9
The text was updated successfully, but these errors were encountered: