Skip to content

Commit

Permalink
AudioBus span fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mnutt committed Jul 9, 2024
1 parent 1e14235 commit 9512024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebCore/platform/audio/qt/AudioBusQt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RefPtr<AudioBus> 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<size_t>(resource.size()) }, /* mixToMono */ false, sampleRate);
}

} // namespace WebCore
Expand Down

0 comments on commit 9512024

Please sign in to comment.