forked from speed-dreams/speed-dreams-code
moved function sortSndPriority() from PlibSoundInterface.cpp to OpenalSoundInterface.cpp
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6096 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 4c588f7b17b65eb7a89facc433e89020394b6248 Former-commit-id: 0b83bb180b3541a970920c9e291b775c109ca419
This commit is contained in:
parent
ac9c2271e3
commit
fb9b39a092
2 changed files with 10 additions and 17 deletions
|
@ -28,7 +28,16 @@
|
|||
|
||||
const int OpenalSoundInterface::OSI_MIN_DYNAMIC_SOURCES = 4;
|
||||
|
||||
|
||||
int sortSndPriority(const void* a, const void* b)
|
||||
{
|
||||
SoundPri* A = (SoundPri*) a;
|
||||
SoundPri* B = (SoundPri*) b;
|
||||
if (A->a > B->a) {
|
||||
return -1;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
OpenalSoundInterface::OpenalSoundInterface(float sampling_rate, int n_channels)
|
||||
: SoundInterface(sampling_rate, n_channels)
|
||||
|
|
|
@ -214,22 +214,6 @@ void PlibSoundInterface::update(CarSoundData** car_sound_data, int n_cars, sgVec
|
|||
sched->update();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
int sortSndPriority(const void* a, const void* b)
|
||||
{
|
||||
SoundPri* A = (SoundPri*) a;
|
||||
SoundPri* B = (SoundPri*) b;
|
||||
if (A->a > B->a) {
|
||||
return -1;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void PlibSoundInterface::setMaxSoundCar(CarSoundData** car_sound_data, QueueSoundMap* smap)
|
||||
{
|
||||
int id = smap->id;
|
||||
|
|
Loading…
Reference in a new issue