Home
last modified time | relevance | path

Searched refs:raw_sample_data (Results 1 – 3 of 3) sorted by relevance

/dports/audio/libopenmpt/libopenmpt-0.6.0+release.autotools/soundlib/
H A DSampleFormatVorbis.cpp183 std::vector<int16> raw_sample_data; in ReadVorbisSample() local
217raw_sample_data.reserve(std::min(MAX_SAMPLE_LENGTH, mpt::saturate_cast<SmpLength>(length)) * std::… in ReadVorbisSample()
234 raw_sample_data.resize(raw_sample_data.size() + (channels * decodedSamples)); in ReadVorbisSample()
237 if((raw_sample_data.size() / channels) > MAX_SAMPLE_LENGTH) in ReadVorbisSample()
304 raw_sample_data.resize(raw_sample_data.size() + (channels * decodedSamples)); in ReadVorbisSample()
305 …CopyAudio(mpt::audio_span_interleaved(raw_sample_data.data() + (offset * channels), channels, deco… in ReadVorbisSample()
307 if((raw_sample_data.size() / channels) > MAX_SAMPLE_LENGTH) in ReadVorbisSample()
320 if(rate <= 0 || channels <= 0 || raw_sample_data.empty()) in ReadVorbisSample()
329 …mptSample.nLength = std::min(MAX_SAMPLE_LENGTH, mpt::saturate_cast<SmpLength>(raw_sample_data.size… in ReadVorbisSample()
339 if(raw_sample_data.size() / channels > MAX_SAMPLE_LENGTH) in ReadVorbisSample()
[all …]
H A DSampleFormatOpus.cpp84 std::vector<int16> raw_sample_data; in ReadOpusSample() local
120raw_sample_data.reserve(std::min(MAX_SAMPLE_LENGTH, mpt::saturate_cast<SmpLength>(length)) * chann… in ReadOpusSample()
136 mpt::append(raw_sample_data, decodeBuf.begin(), decodeBuf.begin() + (framesRead * channels)); in ReadOpusSample()
148 if((raw_sample_data.size() / channels) > MAX_SAMPLE_LENGTH) in ReadOpusSample()
157 if(raw_sample_data.empty()) in ReadOpusSample()
166 …mptSample.nLength = std::min(MAX_SAMPLE_LENGTH, mpt::saturate_cast<SmpLength>(raw_sample_data.size… in ReadOpusSample()
176 if(raw_sample_data.size() / channels > MAX_SAMPLE_LENGTH) in ReadOpusSample()
181 …std::copy(raw_sample_data.begin(), raw_sample_data.begin() + mptSample.nLength * channels, mptSamp… in ReadOpusSample()
H A DSampleFormatMP3.cpp590 std::vector<int16> raw_sample_data; in ReadMP3Sample() local
624 mpt::append(raw_sample_data, sample_buf, sample_buf + frame_samples * channels); in ReadMP3Sample()
632 if((raw_sample_data.size() / channels) > MAX_SAMPLE_LENGTH) in ReadMP3Sample()
638 if(rate == 0 || channels == 0 || raw_sample_data.empty()) in ReadMP3Sample()
643 if((raw_sample_data.size() / channels) > MAX_SAMPLE_LENGTH) in ReadMP3Sample()
655 Samples[sample].nLength = mpt::saturate_cast<SmpLength>(raw_sample_data.size() / channels); in ReadMP3Sample()
663 std::copy(raw_sample_data.begin(), raw_sample_data.end(), Samples[sample].sample16()); in ReadMP3Sample()