MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / SubmitInit

Method SubmitInit

src/decoder/plugins/VorbisDecoderPlugin.cxx:157–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void
158VorbisDecoder::SubmitInit()
159{
160 assert(!dsp_initialized);
161
162 audio_format = CheckAudioFormat(vi);
163
164 frame_size = audio_format.GetFrameSize();
165
166 const auto eos_granulepos = UpdateEndGranulePos();
167 const auto duration = eos_granulepos >= 0
168 ? SignedSongTime::FromScale<uint64_t>(eos_granulepos,
169 audio_format.sample_rate)
170 : SignedSongTime::Negative();
171
172 client.Ready(audio_format, eos_granulepos > 0, duration);
173}
174
175#ifdef HAVE_TREMOR
176static inline int16_t tremor_clip_sample(int32_t x)

Callers

nothing calls this directly

Calls 2

CheckAudioFormatFunction · 0.70
ReadyMethod · 0.45

Tested by

no test coverage detected