public void setSoundEnabledFromPreferences(final String preferences, final String preferenceName,
            final boolean defaultValue) {
        musicPreferences = preferences;
        soundEnabledPreferenceName = preferenceName;
        setSoundEnabled(readFromPreferences(preferences, preferenceName, defaultValue));
    }
public void setSoundEnabledFromPreferences ( final String preferences , final String preferenceName , final boolean defaultValue ) { musicPreferences = preferences ; soundEnabledPreferenceName = preferenceName ; setSoundEnabled ( readFromPreferences ( preferences , preferenceName , defaultValue ) ) ; }
Sets the current sound 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.