SmartDeviceLink In-Vehicle Software and Sample HMI
BSD 3-Clause "New" or "Revised" License
241
stars
245
forks
source link
Core doesn't utilize samplingRate and bitsPerSample parameters provided by HMI when guessing playback time #3831
Closed
dboltovskyi closed 2 years ago
Bug Report
Within fix pull/3057 Core tries to guess playback time using formula:
where
sampling_rate_
andbits_per_sample_
are the values provided by HMI withinpcmStreamCapabilities
However Core always use hardcoded values for
bitsPerSample=16
andsamplingRate=16000
and doesn't take into account the ones provided by HMI.Reproduction Steps
bitsPerSample
andsamplingRate
values (e.g.samplingRate=32000
)AudioStreamConsumer
tosocket
andAudioStreamingPort
to5080
insmartDeviceLink.ini
.gstreamer
command:gstreamer
exits (socket is closed)Expected Behavior
Socket is closed once audio stopped playing
Observed Behavior
Socket remains open some time after audio stopped playing. Looks like the values from
pcmStreamCapabilities
provided by HMI wasn't taken into account.OS & Version Information