#include <Qt/qapplication.h>#include <Qt/qmessagebox.h>#include <Qt/qlistview.h>#include <Qt/qlcdnumber.h>#include <Qt/qgroupbox.h>#include <stdlib.h>#include <cstdio>#include <stdio.h>#include <assert.h>#include <string.h>#include <fcntl.h>#include <signal.h>#include <sys/ioctl.h>#include <unistd.h>#include <Qt/qradiobutton.h>#include <libgen.h>#include <time.h>#include <sys/times.h>#include <Qt/qtabwidget.h>#include <math.h>#include <pthread.h>#include "player.h"#include "energy-analyzer.h"#include "bpm-analyzer.h"#include "spectrum-analyzer.h"#include "rhythm-analyzer.h"#include "md5-analyzer.h"#include "dsp-drivers.h"#include "dsp-oss.h"#include "dsp-alsa.h"#include "dsp-none.h"#include "memory.h"#include "player-core.h"#include "scripts.h"#include "signals.h"#include "histogram-property.h"#include "smallhistogram-type.h"#include "bpmplay.h"#include "capacity-checker.h"#include "bpmplay-event.h"#include "clock-drivers.h"#include "hues.h"#include "info.h"
Defines | |
| #define | next_arg |
| #define | arg_int(name) next_arg name=atoi(argv[i]); |
| #define | arg_str(name) next_arg name=argv[i]; |
| #define | arg_float(name) next_arg name=atof(argv[i]); |
Functions | |
| template float8 | normalize_abs_max< float8 > (float8 *, long) |
| template float8 | find_abs_max< float8 > (float8 *, long) |
| void | options_failure (const char *err) |
| void | process_options (int argc, char *argv[]) |
| bool | show_error (int err, int err2, QString text) |
| void | setup_start () |
| void | normal_start () |
| void | check_start () |
| void | batch_start () |
| bool | to_remote (char *filename) |
| bool | from_remote (char *filename) |
| bool | delete_remote (char *filename) |
| int | remote (int argc, char *argv[]) |
| int | main (int argc, char *argv[]) |
Variables | |
| bool | opt_setup = false |
| const char * | arg_config = "" |
| bool | opt_check = false |
| PlayerConfig * | config |
| QApplication * | app |
| Player * | player_window |
| #define arg_float | ( | name | ) | next_arg name=atof(argv[i]); |
| #define arg_int | ( | name | ) | next_arg name=atoi(argv[i]); |
Referenced by process_options().
| #define arg_str | ( | name | ) | next_arg name=argv[i]; |
Referenced by process_options().
| #define next_arg |
if (++i>=argc) \ options_failure("missing argument to last option");
Referenced by process_options().
| void batch_start | ( | ) |
References core_done(), core_meta_init(), core_object_init(), Debug(), Index::fully_defined_energy(), Index::get_max(), Index::get_md5sum(), Index::get_mean(), Index::get_min(), Index::get_power(), Index::get_spectrum(), Index::get_tags(), Index::get_tempo(), Index::get_time_in_seconds(), Info(), power_type::left, sample4_type::left, playing, tempo_type::qstring(), Index::readable_description(), power_type::right, sample4_type::right, Index::set_tags(), BpmAnalyzerDialog::setBpmBounds(), and Analyzer::start().
Referenced by main().
| void check_start | ( | ) |
When checking the player we automatically check which players are available and check this with the player configuration...
References app, arg_config, assert(), check_capacities(), core_meta_init(), err_needidx, and unavailable_capacities.
Referenced by main().
| bool delete_remote | ( | char * | filename | ) |
References escape(), SSH, and vexecute().
Referenced by remote().
| bool from_remote | ( | char * | filename | ) |
References escape(), and vexecute().
Referenced by remote().
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
| void normal_start | ( | ) |
References app, argument, core_meta_init(), err_needidx, extensionList(), PlayerConfig::load_ui_position(), PlayerConfig::save_ui_position(), and show_error().
Referenced by main().
| void options_failure | ( | const char * | err | ) |
Referenced by process_options().
| void process_options | ( | int | argc, | |
| char * | argv[] | |||
| ) |
References arg_config, arg_int, arg_match, arg_str, argument, dsp, dsp_driver::get_driver(), i, is_none_driver(), metronome, next_arg, opt_check, opt_match, opt_quiet, opt_setup, option(), options_failure(), and sprintf().
Referenced by main().
| int remote | ( | int | argc, | |
| char * | argv[] | |||
| ) |
References arg_match, argument, delete_remote(), escape(), execute(), from_remote(), Index::get_filename(), i, opt_match, opt_setup, Remote(), sprintf(), SSH, and to_remote().
Referenced by main().
| void setup_start | ( | ) |
The main application thread must be the window thread. This is very annoying but that's the way it is. So, we create the application, create the window and then initialize the core. This cannot be done in this function this should be done when the application is initialized and the event loop running (otherwise we cannot give error boxes). Therefore we post an event to the player_window which will be received as soon as the event loop starts running
References app, check_capacities(), PlayerConfig::load_ui_position(), playing, PlayerConfig::save_ui_position(), and TAB_OPTIONS.
Referenced by main().
| bool show_error | ( | int | err, | |
| int | err2, | |||
| QString | text | |||
| ) |
References Error().
Referenced by Player::initCore(), and normal_start().
| bool to_remote | ( | char * | filename | ) |
References escape(), SSH, and vexecute().
Referenced by remote().
| QApplication* app |
| const char* arg_config = "" |
Referenced by Player::captionize_according_to_index(), check_start(), and process_options().
Referenced by Player::initCore(), Player::restartCore(), Player::startCore(), Player::tabChanged(), and Player::timerTick().
Referenced by Player::initCore(), main(), msg_writing_finished(), process_options(), PlayingStateChanged::run(), and Player::startCore().
Referenced by fetch_config_from(), main(), msg_writing_finished(), process_options(), and remote().
Referenced by msg_playing_state_changed(), and msg_writing_finished().
1.6.2