Skip to content

Audio S/PDIF playback reports incorrect LBA #353

@AidanHolmes

Description

@AidanHolmes

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions