mirror of
https://github.com/open-goal/jak-project
synced 2026-08-22 07:04:29 -04:00
Switch to std::span (#3376)
Now that we have cpp20 we can ditch nonstd::span. Depends on #3375
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user