openal-demo.bac

'
' Hello world example with OpenAL. March 2012, PvE.
'
' December 2015 - code improvements.
'---------------------------------------------------

INCLUDE openal.bac
INCLUDE alut.bac

DECLARE helloSource

helloBuffer = alutCreateBufferHelloWorld()

alGenSources(1, &helloSource)
alSourcei(helloSource, AL_BUFFER, helloBuffer)
alSourcePlay(helloSource)

alutSleep(1)

alDeleteSources(1, &helloSource)
alutExit()

Generated by GNU Enscript 1.6.5.90.