Skip to content

.wav files with DTS content return wrong number of channels #317

Description

@jcelerier

Ex. : the following DTS test file is 6 channels (ffmpeg finds them) but dr_wav only finds 2. I think that if the format cannot be read (which is absolutely fine, it's not dr_wav's goal to decode dts) then the init functions should return false and set values to zero so that the calling app can either warn the user or use another decoding method (in my case I use dr_wav for fast WAV mmap'ing and fallback to full libavcodec for more complex file formats for instance).

But here the whole of drwav_init__internal passes and drwav_init_memory_ex returns true so there's not really a way to know it's not supported until it's too late if the user loads such af ile.

DTS 5.1.wav

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions