Login  Register

Implementing openal to game

Posted by Dawn on Sep 03, 2013; 2:09pm
URL: https://forum.jogamp.org/Implementing-openal-to-game-tp4029970.html

 So. After Sources Sharing Buffers lesson 5 at your site i have made a class. And then implemented in two different classes as described below. The interesting part is that it is working, but the sad that it isn't working correct. I'm new in ( at ) Java at all so my brain ( experiences ) won't see out of this so called "my brain loop".

 I'm here to ask you for any advice and that would be really, really appreciated.

Thanks a lot. Regards Andrew ( hrenovka :-) ).

else if (key == KeyEvent.VK_SPACE) {
			if (System.currentTimeMillis() - lastPressProcessed > 1000) {
				
				GameFrame.addMissle(new Missle(x, y - 5));
				contest = new contest();
				contest.initOpenAL();
				contest.loadALData();
				contest.addSource(0);
				lastPressProcessed = System.currentTimeMillis();
				
				}


GameFrame.removeEnemy(this);
				GameFrame.removeMissle(m);
				contest = new contest();
				contest.initOpenAL();
				contest.loadALData();
				contest.addSource(1);
				contest.addSource(2);