adjusting volume for audio listener

I have a problem in adjusting the volume of my Audio Listener. When I tried to drag the thumb of the horizontal slider that I had created, the volume of the background music is still remain the same which was set as 10. Is there anything that I should modify in my script? Here is the script:

var hSliderValue : float = 2.0;
static var volume : float;
function OnGUI () { 

hSliderValue = GUI.HorizontalSlider (Rect (50, 25, 100, 30),
hSliderValue, 0.0, 10.0);
GUI.Box(Rect(0,0,200,50),"Volume");
AudioListener.volume = 5 * hSliderValue; }

Only values between zero and one do anything. You can't boost volume levels.

Like Jessy said, only values between zero and one work. So replace the last line of code you have by:

AudioListener.volume = hSliderValue/10; } and everything should work.

I just created another Audio Source and called it MasterVolume, then i linked its values to the Audio Listener. Then use your slider to control the MasterVolume.

using UnityEngine;
using System.Collections;
public class AudioControls : MonoBehaviour {
public GameObject masterVolume;
private float aSliderValue = 1;
void Update ()
{
aSliderValue = masterVolume.audio.volume;
AudioListener.volume = aSliderValue;
}
}