private void setupAudio ( ) { audio . setAutoplay ( cbAutoPlay . isSelected ( ) ) ; audio . setLoop ( ! cbLoop . isDisabled ( ) && cbLoop . isSelected ( ) ) ; audio . setControls ( cbControls . isSelected ( ) ? WAudio . Controls . PLAY_PAUSE : WAudio . Controls . NATIVE ) ; audio . setDisabled ( cbControls . isSelected ( ) && cbDisable . isSelected ( ) ) ; }
Set the audio configuration options .