extern bool trilinear;
extern bool osx;
extern bool musictoggle;
-extern Weapons weapons;
-extern Person player[maxplayers];
-extern int numplayers;
extern int environment;
extern bool ambientsound;
extern float multiplier;
extern int accountcampaignchoicesmade[10];
extern int accountcampaignchoices[10][5000];
-extern "C" void PlaySoundEx(int channel, OPENAL_SAMPLE *sptr, OPENAL_DSPUNIT *dsp, signed char startpaused);
-extern "C" void PlayStreamEx(int chan, OPENAL_STREAM *sptr, OPENAL_DSPUNIT *dsp, signed char startpaused);
-
void LOG(const std::string &fmt, ...)
{
// !!! FIXME: write me.
OPENAL_SetSFXMasterVolume((int)(volume*255));
loadAllSounds();
- if(musictoggle){
- PlayStreamEx(stream_music3, samp[stream_music3], 0, true);
- OPENAL_SetPaused(channels[stream_music3], false);
- OPENAL_SetVolume(channels[stream_music3], 256);
- }
+ if(musictoggle)
+ emit_stream_np(stream_music3);
LoadTexture(":Data:Textures:Cursor.png",&cursortexture,0,1);
}
if(targetlevel!=7){
- float gLoc[3]={0,0,0};
- float vel[3]={0,0,0};
- PlaySoundEx( fireendsound, samp[fireendsound], NULL, true);
- OPENAL_3D_SetAttributes(channels[fireendsound], gLoc, vel);
- OPENAL_SetVolume(channels[fireendsound], 256);
- OPENAL_SetPaused(channels[fireendsound], false);
+ emit_sound_at(fireendsound);
}
stillloading=0;