decoder/*: use std::span instead of ConstBuffer

This commit is contained in:
Max Kellermann
2022-07-04 15:14:08 +02:00
parent 4ce1dae673
commit 9675cc77e2
9 changed files with 58 additions and 59 deletions

View File

@@ -25,7 +25,8 @@
#include <FLAC/ordinals.h>
template<typename T> struct ConstBuffer;
#include <cstddef>
#include <span>
/**
* This class imports libFLAC PCM data into a PCM format supported by
@@ -47,8 +48,8 @@ public:
return audio_format;
}
ConstBuffer<void> Import(const FLAC__int32 *const src[],
size_t n_frames);
std::span<const std::byte> Import(const FLAC__int32 *const src[],
size_t n_frames);
};
#endif