File tree Expand file tree Collapse file tree 6 files changed +8
-9
lines changed
Expand file tree Collapse file tree 6 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 11#pragma once
22
3+ #include < filesystem>
34#include < span>
4- #include < string>
55#include < utility>
66#include < vector>
77
@@ -21,7 +21,7 @@ class RIFF {
2121
2222 explicit RIFF (std::span<const std::byte> riffData, uint32_t type_);
2323
24- explicit RIFF (const std::string & riffPath, uint32_t type_);
24+ explicit RIFF (const std::filesystem::path & riffPath, uint32_t type_);
2525
2626 [[nodiscard]] explicit operator bool () const ;
2727
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ class WAV : public RIFF {
173173
174174 explicit WAV (std::span<const std::byte> wavData);
175175
176- explicit WAV (const std::string & wavPath);
176+ explicit WAV (const std::filesystem::path & wavPath);
177177
178178 template <ChunkType Type>
179179 [[nodiscard]] auto getFirstWAVChunk () const {
Original file line number Diff line number Diff line change 11#pragma once
22
3+ #include < filesystem>
34#include < span>
4- #include < string>
55#include < vector>
66
77#include < sourcepp/parser/Binary.h>
@@ -31,7 +31,7 @@ class XWV {
3131
3232 explicit XWV (std::span<const std::byte> xwvData);
3333
34- explicit XWV (const std::string & xwvPath);
34+ explicit XWV (const std::filesystem::path & xwvPath);
3535
3636 explicit operator bool () const ;
3737
Original file line number Diff line number Diff line change 33#include < algorithm>
44
55#include < BufferStream.h>
6- #include < filesystem>
76#include < sourcepp/FS.h>
87
98using namespace sndpp ;
@@ -48,7 +47,7 @@ RIFF::RIFF(std::vector<std::byte>&& riffData, uint32_t type_)
4847RIFF::RIFF (std::span<const std::byte> riffData, uint32_t type_)
4948 : RIFF{std::vector<std::byte>{riffData.begin (), riffData.end ()}, type_} {}
5049
51- RIFF::RIFF (const std::string & riffPath, uint32_t type_)
50+ RIFF::RIFF (const std::filesystem::path & riffPath, uint32_t type_)
5251 : RIFF{fs::readFileBuffer (riffPath), type_} {}
5352
5453RIFF::operator bool () const {
Original file line number Diff line number Diff line change @@ -16,5 +16,5 @@ WAV::WAV(std::vector<std::byte>&& wavData)
1616WAV::WAV (std::span<const std::byte> wavData)
1717 : RIFF{wavData, WAV_TYPE} {}
1818
19- WAV::WAV (const std::string & wavPath)
19+ WAV::WAV (const std::filesystem::path & wavPath)
2020 : RIFF{wavPath, WAV_TYPE} {}
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ XWV::XWV(std::span<const std::byte> xwvData)
134134 this ->opened = true ;
135135}
136136
137- XWV::XWV (const std::string & xwvPath)
137+ XWV::XWV (const std::filesystem::path & xwvPath)
138138 : XWV(fs::readFileBuffer(xwvPath)) {}
139139
140140XWV::operator bool () const {
You can’t perform that action at this time.
0 commit comments