bpmplay.cpp File Reference

#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"
Include dependency graph for bpmplay.cpp:

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
PlayerConfigconfig
QApplication * app
Playerplayer_window

Define Documentation

#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
Value:
if (++i>=argc) \
options_failure("missing argument to last option");

Referenced by process_options().


Function Documentation

void batch_start (  ) 
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().

template float8 find_abs_max< float8 > ( float8 ,
long   
)
bool from_remote ( char *  filename  ) 

References escape(), and vexecute().

Referenced by remote().

int main ( int  argc,
char *  argv[] 
)
void normal_start (  ) 
template float8 normalize_abs_max< float8 > ( float8 ,
long   
)
void options_failure ( const char *  err  ) 

Referenced by process_options().

void process_options ( int  argc,
char *  argv[] 
)
int remote ( int  argc,
char *  argv[] 
)
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().


Variable Documentation

QApplication* app
const char* arg_config = ""
bool opt_check = false
bool opt_setup = false
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2