* Disable ccache by default. If you want it, add USE_CCACHE=1 to Makefile.local
* Remove -gfull from linux section in Makefile -- it's darwin only * Cast away some warnings that surfaced from using "new" AL headers * Various whitespace and consistency fixes
This commit is contained in:
parent
877f360812
commit
382c6adb54
11 changed files with 125 additions and 170 deletions
|
@ -847,8 +847,8 @@ static void S_AL_SrcLoop( alSrcPriority_t priority, sfxHandle_t sfx,
|
|||
|
||||
// Set up the position and velocity
|
||||
VectorScale(entityList[entnum].origin, POSITION_SCALE, sorigin);
|
||||
qalSourcefv(srcList[src].source, AL_POSITION, sorigin);
|
||||
qalSourcefv(srcList[src].source, AL_VELOCITY, velocity);
|
||||
qalSourcefv(srcList[src].source, AL_POSITION, (ALfloat *)sorigin);
|
||||
qalSourcefv(srcList[src].source, AL_VELOCITY, (ALfloat *)velocity);
|
||||
|
||||
// Flag it
|
||||
entityList[entnum].touched = qtrue;
|
||||
|
@ -1067,7 +1067,7 @@ void S_AL_RawSamples(int samples, int rate, int width, int channels, const byte
|
|||
|
||||
// Create a buffer, and stuff the data into it
|
||||
qalGenBuffers(1, &buffer);
|
||||
qalBufferData(buffer, format, data, (samples * width * channels), rate);
|
||||
qalBufferData(buffer, format, (ALvoid *)data, (samples * width * channels), rate);
|
||||
|
||||
// Shove the data onto the streamSource
|
||||
qalSourceQueueBuffers(streamSource, 1, &buffer);
|
||||
|
@ -1384,7 +1384,7 @@ void S_AL_Respatialize( int entityNum, const vec3_t origin, vec3_t axis[3], int
|
|||
|
||||
// Set OpenAL listener paramaters
|
||||
VectorScale(origin, POSITION_SCALE, sorigin);
|
||||
qalListenerfv(AL_POSITION, origin);
|
||||
qalListenerfv(AL_POSITION, (ALfloat *)origin);
|
||||
qalListenerfv(AL_VELOCITY, velocity);
|
||||
qalListenerfv(AL_ORIENTATION, orientation);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue