diff --git a/Userland/Applications/SoundPlayer/Player.cpp b/Userland/Applications/SoundPlayer/Player.cpp index 5238fbb2b05..75bb45b876d 100644 --- a/Userland/Applications/SoundPlayer/Player.cpp +++ b/Userland/Applications/SoundPlayer/Player.cpp @@ -6,6 +6,7 @@ */ #include "Player.h" +#include Player::Player(Audio::ConnectionToServer& audio_client_connection) : m_audio_client_connection(audio_client_connection) diff --git a/Userland/Applications/SoundPlayer/Playlist.cpp b/Userland/Applications/SoundPlayer/Playlist.cpp index 69db139f07b..90eec5a919c 100644 --- a/Userland/Applications/SoundPlayer/Playlist.cpp +++ b/Userland/Applications/SoundPlayer/Playlist.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include bool Playlist::load(StringView path) diff --git a/Userland/Libraries/LibAudio/FlacLoader.h b/Userland/Libraries/LibAudio/FlacLoader.h index 009e8e7c5d9..58373a3ada5 100644 --- a/Userland/Libraries/LibAudio/FlacLoader.h +++ b/Userland/Libraries/LibAudio/FlacLoader.h @@ -66,7 +66,6 @@ public: virtual u16 num_channels() override { return m_num_channels; } virtual String format_name() override { return "FLAC (.flac)"; } virtual PcmSampleFormat pcm_format() override { return m_sample_format; } - virtual RefPtr file() override { return m_file; } bool is_fixed_blocksize_stream() const { return m_min_block_size == m_max_block_size; } bool sample_count_unknown() const { return m_total_samples == 0; } diff --git a/Userland/Libraries/LibAudio/Loader.h b/Userland/Libraries/LibAudio/Loader.h index beacfc31c63..737d7dfe966 100644 --- a/Userland/Libraries/LibAudio/Loader.h +++ b/Userland/Libraries/LibAudio/Loader.h @@ -18,7 +18,6 @@ #include #include #include -#include namespace Audio { @@ -54,7 +53,6 @@ public: // Human-readable name of the file format, of the form (.) virtual String format_name() = 0; virtual PcmSampleFormat pcm_format() = 0; - virtual RefPtr file() = 0; }; class Loader : public RefCounted { @@ -73,7 +71,6 @@ public: u16 num_channels() const { return m_plugin->num_channels(); } String format_name() const { return m_plugin->format_name(); } u16 bits_per_sample() const { return pcm_bits_per_sample(m_plugin->pcm_format()); } - RefPtr file() const { return m_plugin->file(); } private: static Result, LoaderError> try_create(StringView path); diff --git a/Userland/Libraries/LibAudio/MP3Loader.h b/Userland/Libraries/LibAudio/MP3Loader.h index 092ca85aba7..4685d2de2fa 100644 --- a/Userland/Libraries/LibAudio/MP3Loader.h +++ b/Userland/Libraries/LibAudio/MP3Loader.h @@ -35,7 +35,6 @@ public: virtual u32 sample_rate() override { return m_sample_rate; } virtual u16 num_channels() override { return m_num_channels; } virtual PcmSampleFormat pcm_format() override { return m_sample_format; } - virtual RefPtr file() override { return m_file; } virtual String format_name() override { return "MP3 (.mp3)"; } private: diff --git a/Userland/Utilities/aplay.cpp b/Userland/Utilities/aplay.cpp index d846fc702b3..ed57cfc6857 100644 --- a/Userland/Utilities/aplay.cpp +++ b/Userland/Utilities/aplay.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include