This is truely strange. I receive a memory access violation error on loading a specific 3dSound ONLY when I'm running the program at 1024x768! Below is my code. When I run the program in any other resolution (640x480 -> 1600x1200), the code runs fine, but if I run it in 1024x768, I get the error, with the IDE pointing to Global Spray1 sound load.. If I comment out that load, the program loads fine. Kind of strange, but I don't want to eliminate that gfx mode from gameplay if I don't have to. Any thoughts?
; Load 3D - Sounds
Global SpawnSound = Load3DSound("Sounds\oceano.wav"):AddLoadBar()
Global FootfallGrass1 = Load3DSound("Sounds\GrassyStep3.wav"):AddLoadBar()
Global FootfallGrass2 = Load3DSound("Sounds\GrassyStep4.wav"):AddLoadBar()
Global Gun1 = Load3DSound("Sounds\Gun1.wav"):AddLoadBar()
Global Spray1 = Load3DSound("Sounds\105mmCN1.wav"):AddLoadBar() ;<<<<<<<<<<<<< This gives me the problems
Global Explosion1 = Load3DSound("Sounds\Explosion1.wav"):AddLoadBar()
Global PowerUP_Pop = Load3DSound("Sounds\PowerUp_Pop.wav"):AddLoadBar()
Global Rico_1 = Load3DSound("Sounds\Ricochet1.wav"):AddLoadBar()
Global Rico_2 = Load3DSound("Sounds\Ricochet2.wav"):AddLoadBar()
Global Whisk = Load3DSound("Sounds\Whisk.wav"):AddLoadBar()
; Load Local Sounds
|