Bug 230554 - Playback of 8kHz .wav files as MediaElementAudioSource nodes is busted
Summary: Playback of 8kHz .wav files as MediaElementAudioSource nodes is busted
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Audio (show other bugs)
Version: Safari Technology Preview
Hardware: Mac (Intel) macOS 10.15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-09-21 07:56 PDT by jujjyl
Modified: 2023-10-25 13:07 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jujjyl 2021-09-21 07:56:59 PDT
STR:

1. Visit http://clb.confined.space/audio_test_suite/ (or git clone the site down for local examination from https://github.com/juj/audio_test_suite )
2. Open page '8bit_detective'
3. Click the button '8bit_detective_8000hz_128kbs_mono_int16.wav'.

Expected:

The page should play back a seamlessly looping audio file as a MediaElementAudioSource with loop: true.

Observed:

The audio clip plays only for about 1/3rd of a second, then going silent. After ~20 seconds of silence, the audio will resume playing.
Comment 1 Alexey Proskuryakov 2021-09-21 08:59:06 PDT
I cannot reproduce this on an Apple Silicon machine with macOS 11.5.3, using Safari 14.1.2 or STP 132.
Comment 2 Chris Dumez 2021-09-21 09:02:01 PDT
(In reply to Alexey Proskuryakov from comment #1)
> I cannot reproduce this on an Apple Silicon machine with macOS 11.5.3, using
> Safari 14.1.2 or STP 132.

I could not reproduce either on a Mac Pro / Intel running macOS 12 beta.
Comment 3 Radar WebKit Bug Importer 2021-09-21 10:39:04 PDT
<rdar://problem/83358456>
Comment 4 jujjyl 2021-09-22 01:05:46 PDT
Made a video showcasing the issue:

http://clb.confined.space/bugs/STP_122_audio_bug.mkv

and to be more precise about the versions:

MacBook Pro (13-inch, 2016, Four Thunderbolt 3 Ports)
 - macOS Catalina 10.15.6 (19G2021)
 - STP Release 122 (Safari 14.2, WebKit 15612.1.6.2)

Though now I realize that you are talking about STP 132. I have been careful to keep STP up to date, but mine is only version 122 it looks like. Could it be that STP is no longer updating against macOS Catalina 10.15.6?
Comment 5 jujjyl 2021-09-22 01:06:51 PDT
Made a second video showcasing a related issue I hear on the other tested setups:

http://clb.confined.space/bugs/Safari_14_compressed_audio_hiccup.mkv

This issue reproduces on the following setups:

MacBook Pro (13-inch, 2016, Four Thunderbolt 3 Ports)
 - macOS Catalina 10.15.6 (19G2021)
 - Safari 14.0 (15610.1.28.1.9, 15610)

Mac mini (2018)
 - macOS Big Sur 11.6 (20G165)
 - Safari 14.1.2 (16611.3.10.1.6)

Mac mini (2018) (same from above)
 - macOS Big Sur 11.6 (20G165)
 - STP Release 132 (Safari 15.4, WebKit 16613.1.1.5)
Comment 6 Brent Fulgham 2023-10-25 13:07:02 PDT
I believe this issue is fixed. I confirmed in Safari 17 (on Intel iMac Pro) running the macOS Sonoma release.

The cause of the bug was in a component outside of the WebKit sources, so I am marking this as Configuration Changed.

If you still see a problem, could you please file a new bug with a specific set of steps illustrating the issue?