return !strncasecmp(str, pfx, strlen(pfx));
}
-extern OPENAL_STREAM * strm[20];
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);
windvector.z=3;
if(ambientsound){
//PlaySoundEx( wind, samp[wind], NULL, true);
- PlayStreamEx(stream_wind, strm[stream_wind], 0, true);
+ PlayStreamEx(stream_wind, samp[stream_wind], 0, true);
OPENAL_SetPaused(channels[stream_wind], false);
OPENAL_SetVolume(channels[stream_wind], 256);
}
if(ambientsound){
//PlaySoundEx( desertambient, samp[desertambient], NULL, true);
- PlayStreamEx( stream_desertambient, strm[stream_desertambient], NULL, true);
+ PlayStreamEx( stream_desertambient, samp[stream_desertambient], NULL, true);
OPENAL_SetPaused(channels[stream_desertambient], false);
OPENAL_SetVolume(channels[stream_desertambient], 256);
}
LoadTexture(":Data:Textures:grassbox.jpg",&objects.boxtextureptr,1,0);
if(ambientsound){
- PlayStreamEx( stream_wind, strm[stream_wind], NULL, true);
+ PlayStreamEx( stream_wind, samp[stream_wind], NULL, true);
OPENAL_SetPaused(channels[stream_wind], false);
OPENAL_SetVolume(channels[stream_wind], 100);
}
{
if(ambientsound)
{
- PlayStreamEx(stream_wind, strm[stream_wind], NULL, true);
+ PlayStreamEx(stream_wind, samp[stream_wind], NULL, true);
OPENAL_SetPaused(channels[stream_wind], false);
OPENAL_SetVolume(channels[stream_wind], 256);
}
//PlaySoundEx(desertambient,
// samp[desertambient], NULL, true);
PlayStreamEx(stream_desertambient,
- strm[stream_desertambient], NULL, true);
+ samp[stream_desertambient], NULL, true);
OPENAL_SetPaused(channels[stream_desertambient], false);
OPENAL_SetVolume(channels[stream_desertambient], 256);
}
if(ambientsound)
{
//PlaySoundEx(wind, samp[wind], NULL, true);
- PlayStreamEx(stream_wind, strm[stream_wind], NULL, true);
+ PlayStreamEx(stream_wind, samp[stream_wind], NULL, true);
OPENAL_SetPaused(channels[stream_wind], false);
OPENAL_SetVolume(channels[stream_wind], 100);
}
if(mainmenu&&musictoggle){
if(mainmenu==1||mainmenu==2||mainmenu==100){
OPENAL_SetFrequency(OPENAL_ALL, 0.001);
- PlayStreamEx( stream_music3, strm[stream_music3], NULL, true);
+ PlayStreamEx( stream_music3, samp[stream_music3], NULL, true);
OPENAL_SetPaused(channels[stream_music3], false);
OPENAL_SetVolume(channels[stream_music3], 256);
OPENAL_SetPaused(channels[music1], true);
}
if(musictoggle){
- PlayStreamEx( stream_music3, strm[stream_music3], NULL, true);
+ PlayStreamEx( stream_music3, samp[stream_music3], NULL, true);
OPENAL_SetPaused(channels[stream_music3], false);
OPENAL_SetVolume(channels[stream_music3], 256);
}
OPENAL_StopSound(OPENAL_ALL); // hack...OpenAL renderer isn't stopping music after tutorial goes to level menu...
OPENAL_SetFrequency(OPENAL_ALL, 0.001);
- PlayStreamEx( stream_music3, strm[stream_music3], NULL, true);
+ PlayStreamEx( stream_music3, samp[stream_music3], NULL, true);
OPENAL_SetPaused(channels[stream_music3], false);
OPENAL_SetVolume(channels[stream_music3], 256);
if(musictoggle){
if(musicvolume[0]>0&&oldmusicvolume[0]<=0){
- PlayStreamEx( music1, strm[music1], NULL, true);
+ PlayStreamEx( music1, samp[music1], NULL, true);
OPENAL_SetPaused(channels[music1], false);
}
if(musicvolume[1]>0&&oldmusicvolume[1]<=0){
- PlayStreamEx( stream_music2, strm[stream_music2], NULL, true);
+ PlayStreamEx( stream_music2, samp[stream_music2], NULL, true);
OPENAL_SetPaused(channels[stream_music2], false);
}
if(musicvolume[2]>0&&oldmusicvolume[2]<=0){
- PlayStreamEx( stream_music3, strm[stream_music3], NULL, true);
+ PlayStreamEx( stream_music3, samp[stream_music3], NULL, true);
OPENAL_SetPaused(channels[stream_music3], false);
}
if(musicvolume[0]<=0&&oldmusicvolume[0]>0){