summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibAudio
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2023-02-08 21:08:01 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-13 00:50:07 +0000
commitd43a7eae545cd699f301471bd0f82399174339c1 (patch)
treec0a55f768f845041c3aebed3f126d462155a799f /Userland/Libraries/LibAudio
parent14951b92ca6160664ccb68c5e1b2d40133763e5f (diff)
downloadserenity-d43a7eae545cd699f301471bd0f82399174339c1.zip
LibCore: Rename `File` to `DeprecatedFile`
As usual, this removes many unused includes and moves used includes further down the chain.
Diffstat (limited to 'Userland/Libraries/LibAudio')
-rw-r--r--Userland/Libraries/LibAudio/WavLoader.h1
-rw-r--r--Userland/Libraries/LibAudio/WavWriter.cpp3
-rw-r--r--Userland/Libraries/LibAudio/WavWriter.h9
3 files changed, 8 insertions, 5 deletions
diff --git a/Userland/Libraries/LibAudio/WavLoader.h b/Userland/Libraries/LibAudio/WavLoader.h
index 28be15af86..d43b1e9129 100644
--- a/Userland/Libraries/LibAudio/WavLoader.h
+++ b/Userland/Libraries/LibAudio/WavLoader.h
@@ -14,7 +14,6 @@
#include <AK/Span.h>
#include <AK/StringView.h>
#include <LibAudio/Loader.h>
-#include <LibCore/File.h>
#include <LibCore/Stream.h>
namespace Audio {
diff --git a/Userland/Libraries/LibAudio/WavWriter.cpp b/Userland/Libraries/LibAudio/WavWriter.cpp
index 521a0a15f8..bbba9b15e8 100644
--- a/Userland/Libraries/LibAudio/WavWriter.cpp
+++ b/Userland/Libraries/LibAudio/WavWriter.cpp
@@ -5,6 +5,7 @@
*/
#include <LibAudio/WavWriter.h>
+#include <LibCore/DeprecatedFile.h>
namespace Audio {
@@ -31,7 +32,7 @@ WavWriter::~WavWriter()
void WavWriter::set_file(StringView path)
{
- m_file = Core::File::construct(path);
+ m_file = Core::DeprecatedFile::construct(path);
if (!m_file->open(Core::OpenMode::ReadWrite)) {
m_error_string = DeprecatedString::formatted("Can't open file: {}", m_file->error_string());
return;
diff --git a/Userland/Libraries/LibAudio/WavWriter.h b/Userland/Libraries/LibAudio/WavWriter.h
index 7d6b31eeb5..dbfbd5457e 100644
--- a/Userland/Libraries/LibAudio/WavWriter.h
+++ b/Userland/Libraries/LibAudio/WavWriter.h
@@ -6,10 +6,13 @@
#pragma once
+#include <AK/DeprecatedString.h>
#include <AK/Noncopyable.h>
+#include <AK/RefPtr.h>
#include <AK/StringView.h>
#include <LibAudio/Sample.h>
-#include <LibCore/File.h>
+#include <LibCore/DeprecatedFile.h>
+#include <LibCore/Forward.h>
namespace Audio {
@@ -31,7 +34,7 @@ public:
u32 sample_rate() const { return m_sample_rate; }
u16 num_channels() const { return m_num_channels; }
u16 bits_per_sample() const { return m_bits_per_sample; }
- RefPtr<Core::File> file() const { return m_file; }
+ RefPtr<Core::DeprecatedFile> file() const { return m_file; }
void set_file(StringView path);
void set_num_channels(int num_channels) { m_num_channels = num_channels; }
@@ -42,7 +45,7 @@ public:
private:
void write_header();
- RefPtr<Core::File> m_file;
+ RefPtr<Core::DeprecatedFile> m_file;
DeprecatedString m_error_string;
bool m_finalized { false };