Skip to main content
Topic: How To Get/set Repeat/shuffle In The 0.7 Sdk? (Read 4519 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How To Get/set Repeat/shuffle In The 0.7 Sdk?

Hm... Subj.

How To Get/set Repeat/shuffle In The 0.7 Sdk?

Reply #1
#include "../SDK/config_var.h"

string8 temp;
config_var_string::g_get_value("CORE/Playback flow control",temp);

How To Get/set Repeat/shuffle In The 0.7 Sdk?

Reply #2
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?

How To Get/set Repeat/shuffle In The 0.7 Sdk?

Reply #3
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);
   }

How To Get/set Repeat/shuffle In The 0.7 Sdk?

Reply #4
Worked for me as well. Exactly what I needed, too! Thanks!

How To Get/set Repeat/shuffle In The 0.7 Sdk?

Reply #5
It was a problem in my conditional statement, works fine now, 10x.

How To Get/set Repeat/shuffle In The 0.7 Sdk?

Reply #6
It does not work in 0.7b15!!!

How To Get/set Repeat/shuffle In The 0.7 Sdk?

Reply #7
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.

How To Get/set Repeat/shuffle In The 0.7 Sdk?

Reply #8
It worked in previous betas!

How To Get/set Repeat/shuffle In The 0.7 Sdk?

Reply #9
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.

How To Get/set Repeat/shuffle In The 0.7 Sdk?

Reply #10
config_var_string::g_set_value( "CORE/Playback flow control", "Random" ) ;
// it worked in previous beta, but now it doesn't

How To Get/set Repeat/shuffle In The 0.7 Sdk?

Reply #11
It works!  hmmmm
is there any list of available constants?

How To Get/set Repeat/shuffle In The 0.7 Sdk?

Reply #12
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.

 
SimplePortal 1.0.0 RC1 © 2008-2019