PlayerConfig Class Reference

#include <player-config.h>

List of all members.

Public Member Functions

 accessors (int, ui_posx,-1)
 accessors (int, ui_posy,-1)
 accessors (QString, core_rawpath,"./")
 accessors (int, player_dsp, 0)
 accessors (int, alsa_latency, 150)
 accessors (bool, dsp_verbose, false)
 accessors (QString, alsa_dev,"hw:0,0")
 accessors (QString, oss_dsp,"/dev/dsp")
 accessors (bool, oss_init_fragments, false)
 accessors (int, oss_fragments, 16)
 accessors (bool, oss_nolatencyaccounting, false)
 accessors (int, oss_latency, 150)
 accessors (int, bpm_channel, 1)
 accessors (bool, player_rms, false)
 accessors (float4, player_rms_target, 0.12)
 accessors (unsigned2, disabled_capacities, 0)
 accessors (QString, jack_dev,"")
 accessors (int, jack_latency, 150)
 accessors (QString, jack_lout,"")
 accessors (QString, jack_rout,"")
 accessors (int, dsp_playrate, 44100)
 PlayerConfig ()
 PlayerConfig (QString configname)
void load_ui_position (QDialog *dialog)
void save_ui_position (QDialog *dialog)
void save ()
void load ()

Constructor & Destructor Documentation

PlayerConfig::PlayerConfig (  ) 

References load(), and save().

PlayerConfig::PlayerConfig ( QString  configname  ) 

References load().


Member Function Documentation

PlayerConfig::accessors ( int  ,
dsp_playrate  ,
44100   
)
PlayerConfig::accessors ( QString  ,
jack_rout  ,
""   
)
PlayerConfig::accessors ( QString  ,
jack_lout  ,
""   
)
PlayerConfig::accessors ( int  ,
jack_latency  ,
150   
)
PlayerConfig::accessors ( QString  ,
jack_dev  ,
""   
)
PlayerConfig::accessors ( unsigned2  ,
disabled_capacities  ,
 
)
PlayerConfig::accessors ( float4  ,
player_rms_target  ,
0.  12 
)
PlayerConfig::accessors ( bool  ,
player_rms  ,
false   
)
PlayerConfig::accessors ( int  ,
bpm_channel  ,
 
)
PlayerConfig::accessors ( int  ,
oss_latency  ,
150   
)
PlayerConfig::accessors ( bool  ,
oss_nolatencyaccounting  ,
false   
)
PlayerConfig::accessors ( int  ,
oss_fragments  ,
16   
)
PlayerConfig::accessors ( bool  ,
oss_init_fragments  ,
false   
)
PlayerConfig::accessors ( QString  ,
oss_dsp  ,
"/dev/dsp  
)
PlayerConfig::accessors ( QString  ,
alsa_dev  ,
"hw:0  ,
0"   
)
PlayerConfig::accessors ( bool  ,
dsp_verbose  ,
false   
)
PlayerConfig::accessors ( int  ,
alsa_latency  ,
150   
)
PlayerConfig::accessors ( int  ,
player_dsp  ,
 
)

Which DSP do we want ? 0 = none; 1 = oss; 2 = ALSA; 3 = mixed; 4 = jack

PlayerConfig::accessors ( QString  ,
core_rawpath  ,
"./"   
)
PlayerConfig::accessors ( int  ,
ui_posy  ,
1 
)
PlayerConfig::accessors ( int  ,
ui_posx  ,
1 
)
void PlayerConfig::load (  ) 
void PlayerConfig::load_ui_position ( QDialog *  dialog  ) 

This is a tricky piece of code because not all window managers behave properly. IceWM for instance will fill in the borders and the likes after the window has positioned, resulting in a difference between setting a position and reading it afterward when finishing the dialog box. An extra problem is that the window decoration is filled in by the window manager, resulting in an asynchronous change of the window position. So in this function we cannot simply measure the shift introduced by setting the position. We can also not simply measure new updates to the position and ignore them because then the end user cannot reposition the window. We cannot use the window rectangle and the internal rectangle because some window managers might behave differently. So what can we do ? We can try to position the window again once the decorations are complete..

Referenced by normal_start(), setup_start(), and Player::timerTick().

void PlayerConfig::save (  ) 
void PlayerConfig::save_ui_position ( QDialog *  dialog  ) 

References save().

Referenced by normal_start(), and setup_start().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2