Open Bug 1656032 Opened 5 years ago Updated 5 years ago

NoAudio is never thrown

Categories

(Core :: Web Audio, enhancement)

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: koalab1999, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0

Steps to reproduce:

I tried to decode dom/media/webaudio/test/noaudio.webm using AudioContext::decodeAudioData().

Actual results:

WebAudioDecodeJob::OnFailure() receives the error code mozilla::WebAudioDecodeJob::ErrorCode::UnknownContent

Expected results:

The decoder should throw mozilla::WebAudioDecodeJob::ErrorCode::NoAudio

NoAudio exists but is never used at the moment.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Web Audio
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.