From 95120249445a7ee125b75fbe4887a990854f3bdc Mon Sep 17 00:00:00 2001 From: Michael Nutt Date: Tue, 9 Jul 2024 17:45:42 +0900 Subject: [PATCH] AudioBus span fix --- Source/WebCore/platform/audio/qt/AudioBusQt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/WebCore/platform/audio/qt/AudioBusQt.cpp b/Source/WebCore/platform/audio/qt/AudioBusQt.cpp index 3236a4295b34a..3c119211d1f1e 100644 --- a/Source/WebCore/platform/audio/qt/AudioBusQt.cpp +++ b/Source/WebCore/platform/audio/qt/AudioBusQt.cpp @@ -32,7 +32,7 @@ RefPtr AudioBus::loadPlatformResource(const char* name, float sampleRa QString path = QStringLiteral(":/webkit/resources/audio/"); path.append(QLatin1String(name)); QResource resource(path); - return createBusFromInMemoryAudioFile(resource.data(), resource.size(), /* mixToMono */ false, sampleRate); + return createBusFromInMemoryAudioFile(std::span { resource.data(), static_cast(resource.size()) }, /* mixToMono */ false, sampleRate); } } // namespace WebCore