Creative Openal Programmer's Reference
Total Page:16
File Type:pdf, Size:1020Kb
Creative OpenAL Programmer’s Reference Version 1.0 Table of Contents ABOUT THIS DOCUMENT....................................................................................................................... 4 INTRODUCTION............................................................................................................................................ 4 INTENDED AUDIENCE.................................................................................................................................. 4 OTHER OPENAL RESOURCES ...................................................................................................................... 4 INTRODUCTION TO OPENAL................................................................................................................ 5 INITIALIZING/EXITING................................................................................................................................. 5 LISTENER PROPERTIES ................................................................................................................................6 BUFFER PROPERTIES ................................................................................................................................... 7 SOURCE PROPERTIES ................................................................................................................................... 7 QUEUING BUFFERS ON A SOURCE ............................................................................................................... 9 DOPPLER SHIFT ......................................................................................................................................... 10 ERROR HANDLING..................................................................................................................................... 11 CORE OPENAL FUNCTIONS ................................................................................................................ 12 BUFFER-RELATED ..................................................................................................................................... 12 alGenBuffers......................................................................................................................................... 12 alDeleteBuffers..................................................................................................................................... 12 alIsBuffer.............................................................................................................................................. 13 alBufferData......................................................................................................................................... 13 alGetBufferf.......................................................................................................................................... 14 alGetBufferi.......................................................................................................................................... 14 SOURCE-RELATED..................................................................................................................................... 15 alGenSources........................................................................................................................................ 15 alDeleteSources.................................................................................................................................... 15 alIsSource............................................................................................................................................. 16 alSourcef............................................................................................................................................... 16 alSourcefv............................................................................................................................................. 17 alSource3f............................................................................................................................................. 17 alSourcei............................................................................................................................................... 18 alGetSourcef......................................................................................................................................... 19 alGetSourcefv ....................................................................................................................................... 19 alGetSourcei......................................................................................................................................... 20 alSourcePlay ........................................................................................................................................ 20 alSourcePlayv....................................................................................................................................... 21 alSourcePause...................................................................................................................................... 21 alSourcePausev .................................................................................................................................... 22 alSourceStop......................................................................................................................................... 22 alSourceStopv....................................................................................................................................... 23 alSourceRewind.................................................................................................................................... 23 alSourceRewindv .................................................................................................................................. 24 alSourceQueueBuffers.......................................................................................................................... 24 alSourceUnqueueBuffers...................................................................................................................... 25 LISTENER-RELATED .................................................................................................................................. 25 alListenerf............................................................................................................................................. 25 alListener3f........................................................................................................................................... 26 alListenerfv........................................................................................................................................... 26 - 1 - alListeneri............................................................................................................................................. 27 alGetListenerf....................................................................................................................................... 27 alGetListener3f..................................................................................................................................... 28 alGetListenerfv ..................................................................................................................................... 28 alGetListeneri....................................................................................................................................... 29 STATE-RELATED ....................................................................................................................................... 29 alEnable................................................................................................................................................ 29 alDisable .............................................................................................................................................. 30 alIsEnabled........................................................................................................................................... 30 alGetBoolean........................................................................................................................................ 30 alGetDouble ......................................................................................................................................... 31 alGetFloat ............................................................................................................................................ 31 alGetInteger.......................................................................................................................................... 32 alGetBooleanv...................................................................................................................................... 32 alGetDoublev........................................................................................................................................ 33 alGetFloatv........................................................................................................................................... 33 alGetIntegerv........................................................................................................................................ 34 alGetString ..........................................................................................................................................