HydrogenAudio

Hosted Forums => foobar2000 => Development - (fb2k) => Topic started by: CrazyCoder on 2003-07-07 16:11:51

Title: How To Get/set Repeat/shuffle In The 0.7 Sdk?
Post by: CrazyCoder on 2003-07-07 16:11:51
Hm... Subj.
Title: How To Get/set Repeat/shuffle In The 0.7 Sdk?
Post by: Peter on 2003-07-07 16:33:26
#include "../SDK/config_var.h"

string8 temp;
config_var_string::g_get_value("CORE/Playback flow control",temp);
Title: How To Get/set Repeat/shuffle In The 0.7 Sdk?
Post by: CrazyCoder on 2003-07-07 20:52:52
Thanks for the info, getting flow control works.

I've tried to use
config_var_string::g_set_value("CORE/Playback flow control", "Random");
but it doesn't work. Playback flow control remains the same (Default).

What is the right way to set it?
Title: How To Get/set Repeat/shuffle In The 0.7 Sdk?
Post by: Peter on 2003-07-08 01:01:01
Weird, I have similar code (in main menu) that works.

   static void set_playback_flow(const char * name)
   {
      config_var_string::g_set_value("CORE/Playback flow control",name);
   }
Title: How To Get/set Repeat/shuffle In The 0.7 Sdk?
Post by: markpasc on 2003-07-08 05:15:08
Worked for me as well. Exactly what I needed, too! Thanks!
Title: How To Get/set Repeat/shuffle In The 0.7 Sdk?
Post by: CrazyCoder on 2003-07-08 08:40:00
It was a problem in my conditional statement, works fine now, 10x.
Title: How To Get/set Repeat/shuffle In The 0.7 Sdk?
Post by: steel_space on 2003-07-14 11:33:39
It does not work in 0.7b15!!!
Title: How To Get/set Repeat/shuffle In The 0.7 Sdk?
Post by: Peter on 2003-07-14 11:43:37
Quote
It does not work in 0.7b15!!!

Sure it doesn't. Code displaying the menu does what I posted; if this doesn't work for you, then you have a problem somewhere else.
Title: How To Get/set Repeat/shuffle In The 0.7 Sdk?
Post by: steel_space on 2003-07-14 11:49:44
It worked in previous betas!
Title: How To Get/set Repeat/shuffle In The 0.7 Sdk?
Post by: Peter on 2003-07-14 12:28:43
Well, we can keep arguing if it works or not, until you finally decide to post your code, and point which part "doesn't work" and what exactly your problem is.
Title: How To Get/set Repeat/shuffle In The 0.7 Sdk?
Post by: steel_space on 2003-07-14 13:14:37
config_var_string::g_set_value( "CORE/Playback flow control", "Random" ) ;
// it worked in previous beta, but now it doesn't
Title: How To Get/set Repeat/shuffle In The 0.7 Sdk?
Post by: steel_space on 2003-07-14 13:21:32
It works!  hmmmm
is there any list of available constants?
Title: How To Get/set Repeat/shuffle In The 0.7 Sdk?
Post by: Peter on 2003-07-14 13:24:44
You can pull list of available public config variables using config_var methods, and names of available shuffle/repeat/etc can be retrieved from playback_flow_control.