Switch to std::span (#3376)

Now that we have cpp20 we can ditch nonstd::span.

Depends on #3375
This commit is contained in:
Ziemas
2024-02-18 19:23:19 +01:00
committed by GitHub
parent 0011fb4b2b
commit 4e569f0115
11 changed files with 32 additions and 1917 deletions
+2 -2
View File
@@ -210,7 +210,7 @@ struct AudioFileInfo {
};
AudioFileInfo process_audio_file(const fs::path& output_folder,
nonstd::span<const uint8_t> data,
std::span<const uint8_t> data,
const std::string& name,
const std::string& suffix,
bool stereo) {
@@ -276,7 +276,7 @@ void process_streamed_audio(const decompiler::Config& config,
}
lg::info("File {}, total {:.2f} minutes", entry.name, audio_len / 60.0);
auto data = nonstd::span(wad_data).subspan(entry.start_byte);
auto data = std::span(wad_data).subspan(entry.start_byte);
auto info = process_audio_file(output_path, data, entry.name, suffix, entry.stereo);
audio_len += info.length_seconds;
filename_data[i][lang_id + 1] = info.filename;