Called from the worker thread. Do all the hard work here.
9 const t_uint32 decode_flags = input_flag_no_seeking | input_flag_no_looping;
16 input.
open(NULL,
m_items[walk], decode_flags, p_abort);
29 while(input.
run(l_chunk, p_abort)) {
33 if (decoded > length) decoded = length;
Implementation of audio_chunk. Takes pfc allocator template as template parameter.
audio_sample get_peak(audio_sample p_peak) const
Helper, calculates peak value of data in the chunk. The optional parameter specifies initial peak val...
double get_length() const
Retrieves audio duration, in seconds. Note that the reported duration should not be assumed to be th...
virtual void set_progress_secondary(t_size p_state)=0
Sets the secondary progress bar state; scale from progress_min to progress_max.
void info(const char *p_message)
void set_progress_secondary_float(double p_state)
Helper; sets secondary progress with a float 0..1 scale.
virtual void set_item_path(const char *p_item, t_size p_item_len=~0)=0
Sets the currently progressed item label; treats the label as a file path.
const metadb_handle_list m_items
virtual void set_progress(t_size p_state)=0
Sets the primary progress bar state; scale from progress_min to progress_max.
double get_duration() const
Retrieves duration of contained audio data, in seconds.