foobar2000 SDK  2015-08-03
Public Member Functions | Static Public Member Functions | Private Attributes
input_wrapper_singletrack_t< I >

#include <input_impl.h>

Public Member Functions

 input_wrapper_singletrack_t ()
 
bool decode_can_seek ()
 
bool decode_get_dynamic_info (file_info &p_out, double &p_timestamp_delta)
 
bool decode_get_dynamic_info_track (file_info &p_out, double &p_timestamp_delta)
 
void decode_initialize (t_uint32 p_subsong, unsigned p_flags, abort_callback &p_abort)
 
void decode_on_idle (abort_callback &p_abort)
 
bool decode_run (audio_chunk &p_chunk, abort_callback &p_abort)
 
bool decode_run_raw (audio_chunk &p_chunk, mem_block_container &p_raw, abort_callback &p_abort)
 
void decode_seek (double p_seconds, abort_callback &p_abort)
 
bool flush_on_pause ()
 
t_filestats get_file_stats (abort_callback &p_abort)
 
void get_info (t_uint32 p_subsong, file_info &p_info, abort_callback &p_abort)
 
t_uint32 get_subsong (t_uint32 p_index)
 
t_uint32 get_subsong_count ()
 
void open (service_ptr_t< file > p_filehint, const char *p_path, t_input_open_reason p_reason, abort_callback &p_abort)
 
void remove_tags (abort_callback &p_abort)
 
void retag_commit (abort_callback &p_abort)
 
void retag_set_info (t_uint32 p_subsong, const file_info &p_info, abort_callback &p_abort)
 
void set_logger (event_logger::ptr ptr)
 
void set_pause (bool paused)
 

Static Public Member Functions

static bool g_is_our_content_type (const char *p_content_type)
 
static bool g_is_our_path (const char *p_path, const char *p_extension)
 

Private Attributes

m_instance
 

Detailed Description

template<typename I>
class input_wrapper_singletrack_t< I >

Helper used by input_singletrack_factory_t, do not use directly. Translates input_impl calls to input_singletrack_impl calls.

Definition at line 219 of file input_impl.h.

Constructor & Destructor Documentation

template<typename I >
input_wrapper_singletrack_t< I >::input_wrapper_singletrack_t ( )
inline

Definition at line 222 of file input_impl.h.

222 {}

Member Function Documentation

template<typename I >
bool input_wrapper_singletrack_t< I >::decode_can_seek ( )
inline

Definition at line 253 of file input_impl.h.

253 {return m_instance.decode_can_seek();}
template<typename I >
bool input_wrapper_singletrack_t< I >::decode_get_dynamic_info ( file_info p_out,
double &  p_timestamp_delta 
)
inline

Definition at line 254 of file input_impl.h.

254 {return m_instance.decode_get_dynamic_info(p_out,p_timestamp_delta);}
template<typename I >
bool input_wrapper_singletrack_t< I >::decode_get_dynamic_info_track ( file_info p_out,
double &  p_timestamp_delta 
)
inline

Definition at line 255 of file input_impl.h.

255 {return m_instance.decode_get_dynamic_info_track(p_out,p_timestamp_delta);}
template<typename I >
void input_wrapper_singletrack_t< I >::decode_initialize ( t_uint32  p_subsong,
unsigned  p_flags,
abort_callback p_abort 
)
inline

Definition at line 246 of file input_impl.h.

246  {
247  if (p_subsong != 0) throw exception_io_data();
248  m_instance.decode_initialize(p_flags,p_abort);
249  }
template<typename I >
void input_wrapper_singletrack_t< I >::decode_on_idle ( abort_callback p_abort)
inline

Definition at line 256 of file input_impl.h.

256 {m_instance.decode_on_idle(p_abort);}
template<typename I >
bool input_wrapper_singletrack_t< I >::decode_run ( audio_chunk p_chunk,
abort_callback p_abort 
)
inline

Definition at line 251 of file input_impl.h.

251 {return m_instance.decode_run(p_chunk,p_abort);}
template<typename I >
bool input_wrapper_singletrack_t< I >::decode_run_raw ( audio_chunk p_chunk,
mem_block_container p_raw,
abort_callback p_abort 
)
inline

Definition at line 263 of file input_impl.h.

263  {
264  return m_instance.decode_run_raw(p_chunk, p_raw, p_abort);
265  }
template<typename I >
void input_wrapper_singletrack_t< I >::decode_seek ( double  p_seconds,
abort_callback p_abort 
)
inline

Definition at line 252 of file input_impl.h.

252 {m_instance.decode_seek(p_seconds,p_abort);}
template<typename I >
bool input_wrapper_singletrack_t< I >::flush_on_pause ( )
inline

Definition at line 272 of file input_impl.h.

272  {
273  return m_instance.flush_on_pause();
274  }
template<typename I >
static bool input_wrapper_singletrack_t< I >::g_is_our_content_type ( const char *  p_content_type)
inlinestatic

Definition at line 282 of file input_impl.h.

282 {return I::g_is_our_content_type(p_content_type);}
template<typename I >
static bool input_wrapper_singletrack_t< I >::g_is_our_path ( const char *  p_path,
const char *  p_extension 
)
inlinestatic

Definition at line 283 of file input_impl.h.

283 {return I::g_is_our_path(p_path,p_extension);}
template<typename I >
t_filestats input_wrapper_singletrack_t< I >::get_file_stats ( abort_callback p_abort)
inline

Definition at line 242 of file input_impl.h.

242  {
243  return m_instance.get_file_stats(p_abort);
244  }
template<typename I >
void input_wrapper_singletrack_t< I >::get_info ( t_uint32  p_subsong,
file_info p_info,
abort_callback p_abort 
)
inline

Definition at line 228 of file input_impl.h.

228  {
229  if (p_subsong != 0) throw exception_io_data();
230  m_instance.get_info(p_info,p_abort);
231  }
template<typename I >
t_uint32 input_wrapper_singletrack_t< I >::get_subsong ( t_uint32  p_index)
inline

Definition at line 237 of file input_impl.h.

237  {
238  assert(p_index == 0);
239  return 0;
240  }
template<typename I >
t_uint32 input_wrapper_singletrack_t< I >::get_subsong_count ( )
inline

Definition at line 233 of file input_impl.h.

233  {
234  return 1;
235  }
template<typename I >
void input_wrapper_singletrack_t< I >::open ( service_ptr_t< file p_filehint,
const char *  p_path,
t_input_open_reason  p_reason,
abort_callback p_abort 
)
inline

Definition at line 224 of file input_impl.h.

224  {
225  m_instance.open(p_filehint,p_path,p_reason,p_abort);
226  }
template<typename I >
void input_wrapper_singletrack_t< I >::remove_tags ( abort_callback p_abort)
inline

Definition at line 278 of file input_impl.h.

278  {
279  m_instance.remove_tags(p_abort);
280  }
template<typename I >
void input_wrapper_singletrack_t< I >::retag_commit ( abort_callback p_abort)
inline

Definition at line 276 of file input_impl.h.

276 {}
template<typename I >
void input_wrapper_singletrack_t< I >::retag_set_info ( t_uint32  p_subsong,
const file_info p_info,
abort_callback p_abort 
)
inline

Definition at line 258 of file input_impl.h.

258  {
259  if (p_subsong != 0) throw exception_io_data();
260  m_instance.retag(p_info,p_abort);
261  }
template<typename I >
void input_wrapper_singletrack_t< I >::set_logger ( event_logger::ptr  ptr)
inline

Definition at line 267 of file input_impl.h.

267 {m_instance.set_logger(ptr);}
template<typename I >
void input_wrapper_singletrack_t< I >::set_pause ( bool  paused)
inline

Definition at line 269 of file input_impl.h.

269  {
270  m_instance.set_pause(paused);
271  }

Field Documentation

template<typename I >
I input_wrapper_singletrack_t< I >::m_instance
private

Definition at line 287 of file input_impl.h.


The documentation for this class was generated from the following file: