Asks the workgroup for it's Sound Settings.

@return soundSettings the sound settings for the specified workgroup.
@throws XMPPErrorException
@throws NoResponseException
@throws NotConnectedException
@throws InterruptedException
348619
public SoundSettings getSoundSettings() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
        SoundSettings request = new SoundSettings();
        request.setType(IQ.Type.get);
        request.setTo(workgroupJID);

        return connection.createStanzaCollectorAndSend(request).nextResultOrThrow();
    }
390449
public final MngSettings
    lazyGetMngUvdSettings() throws Exception {
    String beanName = getMngUvdSettingsName();
    MngSettings mngUvdSettings = (MngSettings) this.beansMap.get(beanName);
    if (mngUvdSettings == null) {
      mngUvdSettings = new MngSettings();
      mngUvdSettings.setLogger(lazyGetLogger());
      mngUvdSettings.setUtlProperties(lazyGetUtlProperties());
      mngUvdSettings.setUtlReflection(lazyGetUtlReflection());
      mngUvdSettings.loadConfiguration(this.uvdSettingsDir,
        this.uvdSettingsBaseFile);
      this.beansMap.put(beanName, mngUvdSettings);
      lazyGetLogger().info(null, AFactoryAppBeans.class, beanName
        + " has been created.");
    }
    return mngUvdSettings;
  }
509030
public void init() {
		if (inited) {
			return;
		}
		Log.info("Initialising sounds..");
		inited = true;
		
		AccessController.doPrivileged(new PrivilegedAction() {
            public Object run() {
				try {
					AL.create();
					soundWorks = true;
					sounds = true;
					music = true;
					Log.info("- Sound works");
				} catch (Exception e) {
					Log.error("Sound initialisation failure.");
					Log.error(e);
					soundWorks = false;
					sounds = false;
					music = false;
				}
				
				return null;
            }});
		
		if (soundWorks) {
			sourceCount = 0;
			sources = BufferUtils.createIntBuffer(maxSources);
			while (AL10.alGetError() == AL10.AL_NO_ERROR) {
				IntBuffer temp = BufferUtils.createIntBuffer(1);
				
				try {
					AL10.alGenSources(temp);
				
					if (AL10.alGetError() == AL10.AL_NO_ERROR) {
						sourceCount++;
						sources.put(temp.get(0));
						if (sourceCount > maxSources-1) {
							break;
						}
					} 
				} catch (OpenALException e) {
					// expected at the end
					break;
				}
			}
			Log.info("- "+sourceCount+" OpenAL source available");
		
			if (AL10.alGetError() != AL10.AL_NO_ERROR) {
				sounds = false;
				music = false;
				soundWorks = false;
				Log.error("- AL init failed");
			} else {
				FloatBuffer listenerOri = BufferUtils.createFloatBuffer(6).put(
						new float[] { 0.0f, 0.0f, -1.0f, 0.0f, 1.0f, 0.0f });
				FloatBuffer listenerVel = BufferUtils.createFloatBuffer(3).put(
						new float[] { 0.0f, 0.0f, 0.0f });
				FloatBuffer listenerPos = BufferUtils.createFloatBuffer(3).put(
						new float[] { 0.0f, 0.0f, 0.0f });
				listenerPos.flip();
				listenerVel.flip();
				listenerOri.flip();
				AL10.alListener(AL10.AL_POSITION, listenerPos);
				AL10.alListener(AL10.AL_VELOCITY, listenerVel);
				AL10.alListener(AL10.AL_ORIENTATION, listenerOri);
   			 
				Log.info("- Sounds source generated");
			}
		}
	}
812182
public java.util.List<OptionGroupOptionSetting> getOptionGroupOptionSettings() {
        if (optionGroupOptionSettings == null) {
            optionGroupOptionSettings = new com.amazonaws.internal.SdkInternalList<OptionGroupOptionSetting>();
        }
        return optionGroupOptionSettings;
    }
1335843
public function actionSettings() 
	{
		$setting = OmmuSettings::model()->findByPk(1);

		// Uncomment the following line if AJAX validation is needed
		$this->performAjaxValidation($setting);

		if(isset($_POST['OmmuSettings'])) {
			$setting->attributes=$_POST['OmmuSettings'];

			$jsonError = CActiveForm::validate($setting);
			if(strlen($jsonError) > 2) {
				echo $jsonError;
				
			} else {
				if(Yii::app()->getRequest()->getParam('enablesave') == 1) {
					if($setting->save()) {
						echo CJSON::encode(array(
							'type' => 0,
							'msg' => '<div class="errorSummary success"><strong>'.Yii::t('phrase', 'Language setting success updated.').'</strong></div>',
						));
					} else {
						print_r($setting->getErrors());
					}
				}
			}
			Yii::app()->end();
		}
	}
1294501
public static function getSettings()
    {
        try {
            return self::getCurrent()->settings;
        } catch (Exception $exception) {
            // No application running.
            throw new SettingsException(
                $exception->getMessage(),
                $exception->getCode(),
                $exception
            );
        }
    }
1312152
function (processSound) {
    var found;
    var i;
    var sound;

    if (!this.loaded) {
      warn('Sound not loaded yet. It will be played once it finished loading');
      this.mustPlay = true;
      return;
    }

    found = false;
    this.isPlaying = true;
    for (i = 0; i < this.pool.children.length; i++) {
      sound = this.pool.children[i];
      if (!sound.isPlaying && sound.buffer && !found) {
        if (processSound) { processSound(sound); }
        sound.play();
        sound.isPaused = false;
        found = true;
        continue;
      }
    }

    if (!found) {
      warn('All the sounds are playing. If you need to play more sounds simultaneously ' +
           'consider increasing the size of pool with the `poolSize` attribute.', this.el);
      return;
    }

    this.mustPlay = false;
  }
459565
public function unsetTemporaryRegion(): self
	{
		if ($this->isSettingSet(self::SET_ORIG_REGION))
		{
			$region = $this->getSetting(self::SET_ORIG_REGION);
			$this->setSetting(self::SET_REGION, $region);
			$this->setSetting(self::SET_PLATFORM, $this->platforms->getPlatformName($region));
			$this->setSetting(self::SET_ORIG_REGION, null);
		}
		return $this;
	}
285080
public function updateSettings()
    {
        // Load the configuration from Paymorrow

        /** @var OxpsPaymorrowRequestControllerProxy $oRequestControllerProxy */
        $oRequestControllerProxy = oxNew( 'OxpsPaymorrowRequestControllerProxy' );
        $aConfigurationResponse  = $oRequestControllerProxy->getConfiguration();

        /** @var OxpsPaymorrowResponseHandler $oResponseHandler */
        $oResponseHandler   = oxNew( 'OxpsPaymorrowResponseHandler' );
        $aConfigurationData = $oResponseHandler->parseGetConfigurationResponse( $aConfigurationResponse );

        $oConfig = oxRegistry::getConfig();

        if ( oxRegistry::get( 'OxpsPaymorrowSettings' )->isSandboxMode() ) {
            $aSettingsMap = array(
                'api_endpoint'         => 'paymorrowEndpointUrlTest',
                'api_resource_handler' => 'paymorrowResourcePathTest',
                'api_operation_mode'   => 'paymorrowOperationModeTest',
            );
        } else {
            $aSettingsMap = array(
                'api_endpoint'         => 'paymorrowEndpointUrlProd',
                'api_resource_handler' => 'paymorrowResourcePath',
                'api_operation_mode'   => 'paymorrowOperationMode',
            );
        }

        // Apply the configuration for module settings
        foreach ( $aSettingsMap as $sPaymorrowKey => $sSettingsKey ) {
            if ( !empty( $aConfigurationData[$sPaymorrowKey] ) ) {
                $sValue = trim( (string) $aConfigurationData[$sPaymorrowKey] );

                $oConfig->setConfigParam( $sSettingsKey, $sValue );
                $oConfig->saveShopConfVar(
                    'str', $sSettingsKey, $sValue, null, sprintf( 'module:%s', $this->getId() )
                );
            }
        }

        // Reset resource cache
        /** @var OxpsPaymorrowResourceCache $oResourceCache */
        $oResourceCache = oxNew( 'OxpsPaymorrowResourceCache' );
        $oResourceCache->cleanCache();
    }
178015
public String getName() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
        AgentInfo agentInfo = new AgentInfo();
        agentInfo.setType(IQ.Type.get);
        agentInfo.setTo(workgroupJID);
        agentInfo.setFrom(getUser());
        AgentInfo response = connection.createStanzaCollectorAndSend(agentInfo).nextResultOrThrow();
        return response.getName();
    }
824023
public function getSounds()
    {
        $uri = 'sounds';
        $response = $this->client->getEndpoint()->get($uri);

        $sounds = [];
        foreach (\GuzzleHttp\json_decode($response->getBody()) as $sound) {
            $sounds[] = new Sound($sound);
        }

        return $sounds;
    }
1061934
public boolean loadJMXSettings() {
        Log log = config.getLog();
        
        // load settings file
        // if non-existant, nothing to load so return success
        File settingsFile = getSettingsFile();
        if (!settingsFile.exists()) { return true; }
        
        // validate file is readable
        if (!settingsFile.canRead()) {
            log.warn("Temporary directory not readable for JMX settings");
            return false;
        }
        
        // create the properties
        Properties properties = new Properties();
        
        // load the properties
        FileInputStream in = null;
        try { 
            in = new FileInputStream(settingsFile);
            properties.load(in);
        }
        catch (IOException ioe) {
            log.error("Unable to load JMX settings: " + ioe.getMessage());
            log.error(ioe);
            return false;
        }
        finally {
            try { if (in != null) { in.close(); } }
            catch (IOException e) { /* ignore */ }
        }
        
        // load the settings
        String value;
        
        value = properties.getProperty("EdenSpace");
        if (value != null) { edenSpace = new String[] { value }; }
        
        value = properties.getProperty("SurvivorSpace");
        if (value != null) { survivorSpace = new String[] { value }; }
        
        value = properties.getProperty("PermGen");
        if (value != null) { permGen = new String[] { value }; }
        
        value = properties.getProperty("TenuredGen");
        if (value != null) { tenuredGen = new String[] { value }; }
        
        value = properties.getProperty("YoungCollector");
        if (value != null) { youngCollector = new String[] { value }; }
        
        value = properties.getProperty("TenuredCollector");
        if (value != null) { tenuredCollector = new String[] { value }; }
        
        // success
        return true;
    }
1124162
protected function getSettingsConfig()
    {
        if (isset($this->settingsConfig)) {
            $fullNamespace = $this->settingsConfig;
        } else {
            $className = $this->getShortClassName();

            $fullNamespace = NameResolver::makeConfigFileName($className);
        }

        if (class_exists($fullNamespace)) {
            return new $fullNamespace($this);
        }

        throw ResourceNotFound::resourceConfigNotFound($fullNamespace);
    }
1237301
public function editSettingsAction()
    {
        if ($this->pool->emergencyHandler->checkMaxCall() === true) {
            // Called too often, we might get into trouble here!
            return $this;
        }

        $this->pool->reset();

        // We will not check this for the cookie config, to avoid people locking
        // themselves out.
        $this->pool->emergencyHandler->setDisable(true);

        // Find caller.
        $caller = $this->callerFinder->findCaller('Cookie Configuration', array());
        $this->pool->chunks->addMetadata($caller);

        // Render it.
        $footer = $this->outputFooter($caller, true);
        $this->pool->chunks->detectEncoding($footer);

        $this->outputService
            ->addChunkString($this->pool->render->renderHeader('Edit local settings', $this->outputCssAndJs()))
            ->addChunkString($footer);
        $this->pool->emergencyHandler->setDisable(false);
        $this->outputService->finalize();

        return $this;
    }
240565
public void activateOptions() {
		/*
		 * AudioSystem.getAudioInputStream requires jdk 1.3,
		 * so we use applet.newaudioclip instead
		 *
		 */
		try {
			clip = Applet.newAudioClip(new URL(audioURL));
		} catch (MalformedURLException mue) {
            LogLog.error("unable to initialize SoundAppender", mue);}
		if (clip == null) {
		      LogLog.error("Unable to initialize SoundAppender");
		}
	}
1301089
def beginGroup(self, prefix):
        
        if self._customFormat:
            self._customFormat.beginGroup(prefix)
        else:
            super(XSettings, self).beginGroup(prefix)
1300938
private function setSettingsForJs() {
        //check if audio url was set
        if (ArrayHelper::keyExists('fileUrl', $this->settings, false) && !empty($this->settings['fileUrl'])) {
            $this->widgetSettings['fileUrl'] = $this->settings['fileUrl'];
        } else {
            throw new ElementNotFound('fileUrl was not set');
        }
        if (ArrayHelper::keyExists('callbacks', $this->settings, false) && !empty($this->settings['callbacks'])) {
            $this->widgetSettings['callbacks'] = $this->settings['callbacks'];
        }
        $this->widgetSettings['initSettings'] = ArrayHelper::keyExists('init', $this->settings, false) ?  $this->settings['init'] : [];
        $containerName = ArrayHelper::keyExists('container', $this->widgetSettings['initSettings'], false) ? $this->widgetSettings['initSettings']['container'] : $this->getId();
        $this->widgetSettings['initSettings']['container'] = '#' . $containerName;

    }