function sound = setupSounds(Gparams)

sound.feedback.correct      = 880; % 150 ms, 880 Hz
sound.feedback.incorrect    = 200; % 150 ms, 200 Hz

[sound.tonebuf, sound.tonepos] = createAudioBuffer(...
    createTone(sound.feedback.correct, 0.150, Gparams.audio.freq), ...
    createTone(sound.feedback.incorrect ,0.150, Gparams.audio.freq) , ...
    createTone(sound.feedback.incorrect, 0.300, Gparams.audio.freq));

PsychPortAudio('FillBuffer', Gparams.audio.h, sound.tonebuf);

end

