#include <input_helpers.h>
|
| input_helper () |
|
bool | can_seek () |
|
void | close () |
|
bool | flush_on_pause () |
|
bool | get_dynamic_info (file_info &p_out, double &p_timestamp_delta) |
|
bool | get_dynamic_info_track (file_info &p_out, double &p_timestamp_delta) |
|
void | get_info (t_uint32 p_subsong, file_info &p_info, abort_callback &p_abort) |
|
const char * | get_path () const |
|
bool | is_open () |
|
bool | need_file_reopen (const char *newPath) const |
|
void | on_idle (abort_callback &p_abort) |
|
void | open (service_ptr_t< file > p_filehint, metadb_handle_ptr p_location, unsigned p_flags, abort_callback &p_abort, bool p_from_redirect=false, bool p_skip_hints=false) |
|
void | open (service_ptr_t< file > p_filehint, const playable_location &p_location, unsigned p_flags, abort_callback &p_abort, bool p_from_redirect=false, bool p_skip_hints=false) |
|
void | open (const playable_location &location, abort_callback &abort, decodeOpen_t const &other) |
|
void | open (metadb_handle_ptr location, abort_callback &abort, decodeOpen_t const &other) |
|
void | open_decoding (t_uint32 subsong, t_uint32 flags, abort_callback &p_abort) |
|
bool | open_path (file::ptr p_filehint, const char *path, abort_callback &p_abort, bool p_from_redirect, bool p_skip_hints) |
|
bool | run (audio_chunk &p_chunk, abort_callback &p_abort) |
|
bool | run_raw (audio_chunk &p_chunk, mem_block_container &p_raw, abort_callback &p_abort) |
|
void | seek (double seconds, abort_callback &p_abort) |
|
void | set_block_buffer (size_t val) |
|
void | set_full_buffer (t_filesize val) |
|
void | set_logger (event_logger::ptr ptr) |
|
void | set_pause (bool state) |
|
Definition at line 6 of file input_helpers.h.
input_helper::input_helper |
( |
| ) |
|
bool input_helper::can_seek |
( |
| ) |
|
void input_helper::close |
( |
| ) |
|
bool input_helper::flush_on_pause |
( |
| ) |
|
Definition at line 97 of file input_helpers.cpp.
98 input_decoder_v3::ptr v3;
99 if (
m_input->service_query_t(v3))
return v3->flush_on_pause();
Definition at line 165 of file input_helpers.cpp.
virtual const char * get_path() const =0
static void g_open_for_info_read(service_ptr_t< input_info_reader > &p_instance, service_ptr_t< file > p_filehint, const char *p_path, abort_callback &p_abort, bool p_from_redirect=false)
t_uint32 get_subsong_index() const
Definition at line 237 of file input_helpers.cpp.
239 dead_item_filter_impl_simple filter(p_abort);
240 return filter.run(p_list,p_mask);
Definition at line 171 of file input_helpers.cpp.
175 instance->commit(p_abort);
virtual const char * get_path() const =0
static void g_open_for_info_write(service_ptr_t< input_info_writer > &p_instance, service_ptr_t< file > p_filehint, const char *p_path, abort_callback &p_abort, bool p_from_redirect=false)
t_uint32 get_subsong_index() const
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
bool input_helper::get_dynamic_info |
( |
file_info & |
p_out, |
|
|
double & |
p_timestamp_delta |
|
) |
| |
Definition at line 143 of file input_helpers.cpp.
144 TRACK_CODE(
"input_decoder::get_dynamic_info",
return m_input->get_dynamic_info(p_out,p_timestamp_delta));
bool input_helper::get_dynamic_info_track |
( |
file_info & |
p_out, |
|
|
double & |
p_timestamp_delta |
|
) |
| |
Definition at line 147 of file input_helpers.cpp.
148 TRACK_CODE(
"input_decoder::get_dynamic_info_track",
return m_input->get_dynamic_info_track(p_out,p_timestamp_delta));
Retrieves info about specific subsong of currently open file.
Definition at line 151 of file input_helpers.cpp.
152 TRACK_CODE(
"input_decoder::get_info",
m_input->get_info(p_subsong,p_info,p_abort));
const char * input_helper::get_path |
( |
| ) |
const |
bool input_helper::is_open |
( |
| ) |
|
bool input_helper::need_file_reopen |
( |
const char * |
newPath | ) |
const |
Definition at line 19 of file input_helpers.cpp.
21 open(p_filehint,p_location->get_location(),p_flags,p_abort,p_from_redirect,p_skip_hints);
Definition at line 75 of file input_helpers.cpp.
77 o.m_hint = p_filehint;
79 o.m_from_redirect = p_from_redirect;
80 o.m_skip_hints = p_skip_hints;
81 this->
open( p_location, p_abort, o );
Definition at line 67 of file input_helpers.cpp.
68 open_path(other.m_hint, location.
get_path(), abort, other.m_from_redirect, other.m_skip_hints);
virtual t_uint32 get_subsong() const =0
virtual const char * get_path() const =0
Multilevel open helpers.
Definition at line 63 of file input_helpers.cpp.
64 TRACK_CODE(
"input_decoder::initialize",
m_input->initialize(subsong,flags,p_abort));
bool input_helper::open_path |
( |
file::ptr |
p_filehint, |
|
|
const char * |
path, |
|
|
abort_callback & |
p_abort, |
|
|
bool |
p_from_redirect, |
|
|
bool |
p_skip_hints |
|
) |
| |
Multilevel open helpers.
- Returns
- Diagnostic/helper value: true if the decoder had to be re-opened entirely, false if the instance was reused.
Definition at line 32 of file input_helpers.cpp.
41 TRACK_CODE(
"input_entry::g_open_for_decoding",
49 }
catch(exception_io_data) {
52 if (l_file.
is_valid()) l_file->reopen(p_abort);
53 TRACK_CODE(
"input_entry::g_open_for_decoding",
static void g_open_for_decoding(service_ptr_t< input_decoder > &p_instance, service_ptr_t< file > p_filehint, const char *p_path, abort_callback &p_abort, bool p_from_redirect=false)
Helper template used to easily access core services. Usage: static_api_ptr_t<myclass> api; api->doso...
Definition at line 109 of file input_helpers.cpp.
110 input_decoder_v2::ptr v2;
111 if (!
m_input->service_query_t(v2))
throw pfc::exception_not_implemented();
112 return v2->run_raw(p_chunk, p_raw, p_abort);
void input_helper::set_block_buffer |
( |
size_t |
val | ) |
|
void input_helper::set_full_buffer |
( |
t_filesize |
val | ) |
|
void input_helper::set_logger |
( |
event_logger::ptr |
ptr | ) |
|
Definition at line 104 of file input_helpers.cpp.
105 input_decoder_v2::ptr v2;
106 if (
m_input->service_query_t(v2)) v2->set_logger(ptr);
void input_helper::set_pause |
( |
bool |
state | ) |
|
Definition at line 93 of file input_helpers.cpp.
94 input_decoder_v3::ptr v3;
95 if (
m_input->service_query_t(v3)) v3->set_pause(state);
t_filesize input_helper::m_ioFilterArg |
|
private |
The documentation for this class was generated from the following files: