I'm trying to get Create, Play and Stop Source to work in Lua. Who can tell me what I am doing wrong here? Using this results in crashing the engine.
ambient=LoadSound("abstract::ambient.ogg")
test =CreateSource(ambient,SOURCE_LOOP)
-- a part of the MAIN LOOP
if KeyHit(KEY_E)==1 then
PlaySource(test)
end
if KeyHit(KEY_F)==1 then
StopSource(test)
end