X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2Fopenal_wrapper.cpp;h=5ac0f6b08979999a575109c84096fb1152174e00;hb=af80f1f20e2b21ccf08af5421e5c683ac6deebcd;hp=e3757172536a15d416a72b7b2d7f4704504c4086;hpb=71128f2976d474e055fdc68887d9403e9b5e3fc6;p=lugaru.git diff --git a/Source/openal_wrapper.cpp b/Source/openal_wrapper.cpp index e375717..5ac0f6b 100644 --- a/Source/openal_wrapper.cpp +++ b/Source/openal_wrapper.cpp @@ -114,14 +114,6 @@ typedef struct OPENAL_SAMPLE int is2d; } OPENAL_SAMPLE; -typedef struct OPENAL_STREAM -{ - char *name; - ALuint bid; // buffer id. - int mode; - int is2d; -} OPENAL_STREAM; - static size_t num_channels = 0; static OPENAL_Channels *channels = NULL; static bool initialized = false; @@ -193,12 +185,6 @@ AL_API signed char OPENAL_3D_SetAttributes(int channel, const float *pos, const return true; } -AL_API void OPENAL_3D_SetDopplerFactor(float scale) -{ - if (!initialized) return; - // unimplemented...looks like init routines just call this with scale == 0.0f anyhow. -} - AL_API signed char OPENAL_Init(int mixrate, int maxsoftwarechannels, unsigned int flags) { if (initialized) return false; @@ -600,11 +586,6 @@ AL_API signed char OPENAL_StopSound(int channel) return true; } -AL_API OPENAL_STREAM *OPENAL_Stream_Open(const char *name_or_data, unsigned int mode, int offset, int length) -{ - return (OPENAL_STREAM *) OPENAL_Sample_Load(OPENAL_FREE, name_or_data, mode, offset, length); -} - AL_API void OPENAL_Stream_Close(OPENAL_STREAM *stream) { OPENAL_Sample_Free((OPENAL_SAMPLE *) stream);