OK thanks for the help. I have the following code now.
range = 100
--Load a sound
local sound = Sound:Load("Sound/heli2.wav")
--Create a source
source = Source:Create()
source:SetSound(sound)
sound:Release()
source:SetLoopMode(true)
source:Play()
source:SetPosition(Vec3(0,0,1))
source:SetRange(range)
local listener = Listener:Create()
listener:SetPosition(0,0,0)
The problem now is that the sound is not heard anymore. It does not matter which range I enter. The sound is converted to mono.
I do not understand that now with the listener. Where do I have to integrate and which parameters do I have to set?
I ask for help.