mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
LibMedia: Convert OggLoader into generic FFmpegLoader
This loader supports whatever format libavformat and libavcodec can handle. Currently only seekable streams are supported, and we still have some limitations as to the number of channels and sample format. Plays all non-streaming audio files at: https://tools.woolyss.com/html5-audio-video-tester/
This commit is contained in:
parent
ec15f8fa62
commit
57783eff24
Notes:
github-actions[bot]
2024-09-30 16:49:13 +00:00
Author: https://github.com/gmta
Commit: 57783eff24
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1575
11 changed files with 382 additions and 288 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
static void run_test(StringView file_name, int const num_samples, int const channels, u32 const rate)
|
||||
{
|
||||
constexpr auto format = "Ogg Vorbis (.ogg)";
|
||||
constexpr auto format = "ogg";
|
||||
constexpr int bits = 32;
|
||||
|
||||
ByteString in_path = ByteString::formatted("vorbis/{}", file_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue