Commit a2655b2
committed
[GStreamer][webaudio] Rialto with WebKit audio sink
https://bugs.webkit.org/show_bug.cgi?id=278911
Reviewed by Philippe Normand.
Rialto supports single instance of webaudio pcm sing so it is not possible to create more than one WebAudio context. Use
WebKit audio sink instead, that mixes all webaudio contextes into single stream and pass it to rialto webaudio sink.
With webkit 2.38 webaudio src element produce 'non-interleaved' audio format that is not fully supported by some
platform sinks (audio output is breaking). WebKit audio sink (mixer pipeline) also doesn't seem to handle that
correctly. Mixer pipeline fails to negotiate caps and inter audio sink reqires the latest gst version to work with such
stream.
Patch by Andrzej Surdej <Andrzej_Surdej@comcast.com>.
* Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp:
(WebCore::AudioDestinationGStreamer::AudioDestinationGStreamer):
* Source/WebCore/platform/gstreamer/GStreamerQuirkRialto.cpp:
(WebCore::GStreamerQuirkRialto::createWebAudioSink):
Canonical link: https://commits.webkit.org/283137@main1 parent 332c665 commit a2655b2
2 files changed
Lines changed: 19 additions & 2 deletions
File tree
- Source/WebCore/platform
- audio/gstreamer
- gstreamer
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
163 | 176 | | |
164 | 177 | | |
165 | 178 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
0 commit comments