diff --git a/src/audio/backend/openal2.h b/src/audio/backend/openal2.h index 66a45af5a..b6c82e7c4 100644 --- a/src/audio/backend/openal2.h +++ b/src/audio/backend/openal2.h @@ -137,6 +137,14 @@ private: Filter_Audio* filterer = nullptr; LPALCLOOPBACKOPENDEVICESOFT alcLoopbackOpenDeviceSOFT = nullptr; LPALCISRENDERFORMATSUPPORTEDSOFT alcIsRenderFormatSupportedSOFT = nullptr; + + // needed because Ubuntu 14.04 lacks the AL_SOFT_source_latency extension +#ifndef AL_SOFT_source_latency + #define AL_SAMPLE_OFFSET_LATENCY_SOFT 0x1200 + #define AL_SEC_OFFSET_LATENCY_SOFT 0x1201 + typedef void (AL_APIENTRY*LPALGETSOURCEDVSOFT)(ALuint,ALenum,const ALdouble*); +#endif + LPALGETSOURCEDVSOFT alGetSourcedvSOFT = nullptr; LPALCRENDERSAMPLESSOFT alcRenderSamplesSOFT = nullptr; };