func wrapper_audioHQ(t *eval.Thread, in []eval.Value, out []eval.Value) {
	if uiSettings.Terminated() {
		return
	}
	hqAudio := in[0].(eval.BoolValue).Get(t)
	mutex.Lock()
	uiSettings.SetAudioQuality(hqAudio)
	mutex.Unlock()
}
Signature: func audioHQ(enable bool)
package sdl_output
import (
	intp "github.com/remogatto/gospeccy/src/interpreter"
	"github.com/sbinet/go-eval"
	"sync"
)
type userInterfaceSettings_t interface {
	Terminated() bool
	ResizeVideo(scale2x, fullscreen bool)
	ShowPaintedRegions(enable bool)
	EnableAudio(enable bool)
	SetAudioFreq(freq uint)  
	SetAudioQuality(hqAudio bool)
}
var uiSettings userInterfaceSettings_t
var mutex sync.Mutex
func setUI(ui userInterfaceSettings_t) {
	mutex.Lock()
	uiSettings = ui
	mutex.Unlock()
}
func wrapper_scale(t *eval.Thread, in []eval.Value, out []eval.Value) {
	if uiSettings.Terminated() {
		return
	}
	n := in[0].(eval.UintValue).Get(t)
	switch n {
	case 1:
		mutex.Lock()
		uiSettings.ResizeVideo(false, false)
		mutex.Unlock()
	case 2:
		mutex.Lock()
		uiSettings.ResizeVideo(true, false)
		mutex.Unlock()
	}
}
func wrapper_fullscreen(t *eval.Thread, in []eval.Value, out []eval.Value) {
	if uiSettings.Terminated() {
		return
	}
	enable := in[0].(eval.BoolValue).Get(t)
	if enable {
		mutex.Lock()
		uiSettings.ResizeVideo(true, true)
		mutex.Unlock()
	} else {
		mutex.Lock()
		uiSettings.ResizeVideo(true, false)
		mutex.Unlock()
	}
}
func wrapper_showPaint(t *eval.Thread, in []eval.Value, out []eval.Value) {
	if uiSettings.Terminated() {
		return
	}
	enable := in[0].(eval.BoolValue).Get(t)
	mutex.Lock()
	uiSettings.ShowPaintedRegions(enable)
	mutex.Unlock()
}
func wrapper_audio(t *eval.Thread, in []eval.Value, out []eval.Value) {
	if uiSettings.Terminated() {
		return
	}
	enable := in[0].(eval.BoolValue).Get(t)
	mutex.Lock()
	uiSettings.EnableAudio(enable)
	mutex.Unlock()
}
func wrapper_audioFreq(t *eval.Thread, in []eval.Value, out []eval.Value) {
	if uiSettings.Terminated() {
		return
	}
	freq := uint(in[0].(eval.UintValue).Get(t))
	mutex.Lock()
	uiSettings.SetAudioFreq(freq)
	mutex.Unlock()
}