Now 0ad not compile with option --without-audio
SoundGroup.cpp ../../../source/soundmanager/scripting/SoundGroup.cpp: In member function ‘float CSoundGroup::RadiansOffCenter(const CVector3D&, bool&, float&)’: ../../../source/soundmanager/scripting/SoundGroup.cpp:150:18: error: ‘MAX_ROLLOFF’ was not declared in this scope itemRollOff = MAX_ROLLOFF; ^~~~~~~~~~~ ../../../source/soundmanager/scripting/SoundGroup.cpp:165:17: error: ‘MAX_ROLLOFF’ was not declared in this scope itemRollOff = MAX_ROLLOFF;
Issue emerged in https://code.wildfiregames.com/D3108
RadiansOffCenter used only in SoundGroup.cpp and this method now work only with OpenAL (MAX_ROLLOFF its ALfloat from OpenAL).
Patch moved RadiansOffCenter in private and #if CONFIG2_AUDIO sections