Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How To Get/set Repeat/shuffle In The 0.7 Sdk? (Read 4923 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);
We are the bork. Your software bugs will be added to our own. Resistance is futile.

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);
   }
We are the bork. Your software bugs will be added to our own. Resistance is futile.

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.
We are the bork. Your software bugs will be added to our own. Resistance is futile.

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.
We are the bork. Your software bugs will be added to our own. Resistance is futile.

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.
We are the bork. Your software bugs will be added to our own. Resistance is futile.

 
SimplePortal 1.0.0 RC1 © 2008-2021