code: public void setMusicEnabledFromPreferences(final String preferences, final String preferenceName,
              final boolean defaultValue) {
          musicPreferences = preferences;
          musicEnabledPreferenceName = preferenceName;
          setMusicEnabled(readFromPreferences(preferences, preferenceName, defaultValue));
      }
docs: Sets the current music state according to the value stored in preferences. Mostly for internal use.
  
  @param preferences path to the preferences. Will be set as global music preferences path.
  @param preferenceName name of the state preference.
  @param defaultValue used if preference is not set.