All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
alhelpers.c File Reference
#include <stdio.h>
#include "AL/al.h"
#include "AL/alc.h"
#include "AL/alext.h"
#include "alhelpers.h"

Go to the source code of this file.


ALsizei BytesToFrames (ALsizei size, ALenum channels, ALenum type)
const char * ChannelsName (ALenum chans)
void CloseAL (void)
ALsizei FramesToBytes (ALsizei size, ALenum channels, ALenum type)
ALenum GetFormat (ALenum channels, ALenum type, LPALISBUFFERFORMATSUPPORTEDSOFT palIsBufferFormatSupportedSOFT)
int InitAL (void)
const char * TypeName (ALenum type)
void AL_APIENTRY wrap_BufferSamples (ALuint buffer, ALuint samplerate, ALenum internalformat, ALsizei samples, ALenum channels, ALenum type, const ALvoid *data)

Function Documentation

ALsizei BytesToFrames ( ALsizei  size,
ALenum  channels,
ALenum  type 

Definition at line 324 of file alhelpers.c.

References FramesToBytes().

Referenced by LoadSound(), StartPlayer(), and UpdatePlayer().

const char* ChannelsName ( ALenum  chans)
void CloseAL ( void  )
void AL_APIENTRY wrap_BufferSamples ( ALuint  buffer,
ALuint  samplerate,
ALenum  internalformat,
ALsizei  samples,
ALenum  channels,
ALenum  type,
const ALvoid data 

Definition at line 253 of file alhelpers.c.

References alBufferData(), and FramesToBytes().