LBA returned from cdromGetAudioPlaybackStatus reports incorrect LBA where audio_get_file_position() / 2352 is only the relative LBA from the start of the audio file and not the CD LBA. This causes issues with any applications calling read sub channel to check audio playback position.
Note that the reverse is also true when using audio_set_file_position which cannot translate an absolute CD LBA to a relative fpos in an audio file track. Usage of this function from audio_spdif.cpp should consider the current track start LBA and deduct from the absolute LBA before calling audio_set_file_position.
This occurs on a Pico W (2040) using the latest Pico_Audio_SPDIF build
LBA returned from cdromGetAudioPlaybackStatus reports incorrect LBA where audio_get_file_position() / 2352 is only the relative LBA from the start of the audio file and not the CD LBA. This causes issues with any applications calling read sub channel to check audio playback position.
Note that the reverse is also true when using audio_set_file_position which cannot translate an absolute CD LBA to a relative fpos in an audio file track. Usage of this function from audio_spdif.cpp should consider the current track start LBA and deduct from the absolute LBA before calling audio_set_file_position.
This occurs on a Pico W (2040) using the latest Pico_Audio_SPDIF build