liblives
2.4.1-svn
|
Preferences. More...
Functions | |
livesString | currentVideoLoadDir (const livesApp &lives) |
livesString | currentAudioDir (const livesApp &lives) |
livesString | tmpDir (const livesApp &lives) |
Despite the name, this is the working directory for the LiVES application. More... | |
lives_audio_source_t | audioSource (const livesApp &lives) |
bool | setAudioSource (const livesApp &lives, lives_audio_source_t asrc) |
Set the audio source. More... | |
lives_audio_player_t | audioPlayer (const livesApp &lives) |
int | audioPlayerRate (const livesApp &lives) |
Returns the audio rate for the player. More... | |
bool | isRealtimeAudioPlayer (lives_audio_player_t ptype) |
int | rteKeysVirtual (const livesApp &lives) |
double | maxFPS (const livesApp &lives) |
bool | audioFollowsVideoChanges (const livesApp &lives) |
bool | audioFollowsFPSChanges (const livesApp &lives) |
bool | setAudioFollowsVideoChanges (const livesApp &lives, bool setting) |
bool | setAudioFollowsFPSChanges (const livesApp &lives, bool setting) |
bool | sepWinSticky (const livesApp &lives) |
bool | setSepWinSticky (const livesApp &lives, bool) |
bool | mtExitRender (const livesApp &lives) |
bool | setMtExitRender (const livesApp &lives, bool setting) |
Preferences.
Valid values are only returned if the livesApp::isValid() is true, and livesApp::status() is not LIVES_STATUS_NOTREADY. Implementation note: we use const livesApp & here to avoid the destructor being called on a copy object, which would cause LiVES to terminate prematurely.
bool lives::prefs::audioFollowsFPSChanges | ( | const livesApp & | lives | ) |
lives | a reference to a valid livesApp instance |
bool lives::prefs::audioFollowsVideoChanges | ( | const livesApp & | lives | ) |
lives | a reference to a valid livesApp instance |
lives_audio_player_t lives::prefs::audioPlayer | ( | const livesApp & | lives | ) |
lives | a reference to a livesApp instance |
int lives::prefs::audioPlayerRate | ( | const livesApp & | lives | ) |
Returns the audio rate for the player.
Note this may be different from the clip audio rate. Only valid if isRealtimeAudioPlayer(lives.audioPlayer()) is true.
lives | a reference to a livesApp instance |
lives_audio_source_t lives::prefs::audioSource | ( | const livesApp & | lives | ) |
lives | a reference to a valid livesApp instance |
livesString lives::prefs::currentAudioDir | ( | const livesApp & | lives | ) |
lives | a reference to a valid const livesApp &instance |
livesString lives::prefs::currentVideoLoadDir | ( | const livesApp & | lives | ) |
lives | a reference to a valid livesApp instance |
bool lives::prefs::isRealtimeAudioPlayer | ( | lives_audio_player_t | ptype | ) |
ptype | an audio player type |
double lives::prefs::maxFPS | ( | const livesApp & | lives | ) |
lives | a reference to a valid livesApp instance |
bool lives::prefs::mtExitRender | ( | const livesApp & | lives | ) |
lives | a reference to a valid livesApp instance |
int lives::prefs::rteKeysVirtual | ( | const livesApp & | lives | ) |
bool lives::prefs::sepWinSticky | ( | const livesApp & | lives | ) |
lives | a reference to a valid livesApp instance |
bool lives::prefs::setAudioFollowsFPSChanges | ( | const livesApp & | lives, |
bool | setting | ||
) |
lives | a reference to a valid livesApp instance |
setting | the new setting |
bool lives::prefs::setAudioFollowsVideoChanges | ( | const livesApp & | lives, |
bool | setting | ||
) |
lives | a reference to a valid livesApp instance |
setting | the new setting |
bool lives::prefs::setAudioSource | ( | const livesApp & | lives, |
lives_audio_source_t | asrc | ||
) |
Set the audio source.
Only works if livesApp::status() is LIVES_STATUS_READY.
lives | a reference to a valid livesApp instance |
asrc | the desired audio source |
bool lives::prefs::setMtExitRender | ( | const livesApp & | lives, |
bool | setting | ||
) |
lives | a reference to a valid livesApp instance |
setting | the new setting |
bool lives::prefs::setSepWinSticky | ( | const livesApp & | lives, |
bool | |||
) |
lives | a reference to a valid livesApp instance |
livesString lives::prefs::tmpDir | ( | const livesApp & | lives | ) |
Despite the name, this is the working directory for the LiVES application.
The valid list of sets is drawn from this directory, for it is here that they are saved and loaded. The value can only be set at runtime through the GUI preferences window. Otherwise you can override the default value when the livesApp() is created via argv[] option "-tmpdir", eg:
char *argv[2];
argv[0]="-tmpdir";
argv[1]="/home/user/tempdir/";
livesApp lives(2, argv);
lives | a reference to a valid livesApp instance |