foobar2000 SDK  2015-01-14
Data Structures | Functions
decode.cpp File Reference

Go to the source code of this file.

Data Structures

class  calculate_peak_process
 

Functions

void RunCalculatePeak (metadb_handle_list_cref data)
 

Function Documentation

void RunCalculatePeak ( metadb_handle_list_cref  data)

Definition at line 64 of file decode.cpp.

64  {
65  try {
66  if (data.get_count() == 0) throw pfc::exception_invalid_params();
68  static_api_ptr_t<threaded_process>()->run_modeless(
69  cb,
72  "Sample component: peak scan");
73  } catch(std::exception const & e) {
74  popup_message::g_complain("Could not start peak scan process", e);
75  }
76 }
Template implementing reference-counting features of service_base. Intended for dynamic instantiation...
Definition: service_impl.h:4
Shows the item being currently processed.
Shows dual progress bars; implies flag_show_progress.
virtual t_size get_count() const =0
std::exception exception
Definition: primitives.h:193
HWND get_main_window()
Retrieves main app window. WARNING: this is provided for parent of dialog windows and such only; usin...
Shows the "abort" button.
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
static void g_complain(const char *what)
Helper template used to easily access core services. Usage: static_api_ptr_t api; api->doso...
Definition: service.h:533