From de17cd018e2ba9db35d6425d6955839146e2af2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Wed, 8 Mar 2023 15:26:30 +0100 Subject: [PATCH] LibAudio: Add accessor to "real" PCM sample format of loader --- Userland/Libraries/LibAudio/Loader.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibAudio/Loader.h b/Userland/Libraries/LibAudio/Loader.h index 699f28d3459..3dde6471c11 100644 --- a/Userland/Libraries/LibAudio/Loader.h +++ b/Userland/Libraries/LibAudio/Loader.h @@ -106,6 +106,7 @@ public: u16 num_channels() const { return m_plugin->num_channels(); } DeprecatedString format_name() const { return m_plugin->format_name(); } u16 bits_per_sample() const { return pcm_bits_per_sample(m_plugin->pcm_format()); } + PcmSampleFormat pcm_format() const { return m_plugin->pcm_format(); } Metadata const& metadata() const { return m_plugin->metadata(); } Vector const& pictures() const { return m_plugin->pictures(); };