pcm/*: use std::span instead of ConstBuffer
This commit is contained in:
@@ -511,9 +511,9 @@ DecoderBridge::SubmitData(InputStream *is,
|
||||
assert(dc.in_audio_format != dc.out_audio_format);
|
||||
|
||||
try {
|
||||
auto result = convert->Convert({data, length});
|
||||
data = result.data;
|
||||
length = result.size;
|
||||
auto result = convert->Convert({(const std::byte *)data, length});
|
||||
data = result.data();
|
||||
length = result.size();
|
||||
} catch (...) {
|
||||
/* the PCM conversion has failed - stop
|
||||
playback, since we have no better way to
|
||||
|
@@ -227,8 +227,7 @@ VorbisDecoder::SubmitSomePcm()
|
||||
}
|
||||
#else
|
||||
PcmInterleaveFloat(buffer,
|
||||
ConstBuffer<const in_sample_t *>(pcm,
|
||||
channels),
|
||||
{pcm, channels},
|
||||
n_frames);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user