Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Jabaco Source
1 2 3 4 5 6 7 8 9 10 Public Function LoadResData(resID As IResource) As InputStream Set LoadResData = Nothing Set LoadResData = getClass.getResourceAsStream(resID) End Function Public Function GetWavResClip(ResID As IResource) As Clip Set GetWavResClip = Nothing GetWavResClip = AudioSystem.getClip GetWavResClip.open(AudioSystem.getAudioInputStream(LoadResData(ResID))) End Function
Jabaco Source |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
public InputStream LoadResData(IResource resID) { InputStream LoadResData = null; Object Err = null; try { this.lblStep.$Caption("20.0"); LoadResData = null; this.lblStep.$Caption("20.1"); LoadResData = super.getClass().getResourceAsStream(resID.toString()); this.lblStep.$Caption("20.2"); } catch (Throwable var6) { Interaction.MsgBox((Throwable)var6); return LoadResData; } return LoadResData; } public Clip GetWavResClip(IResource ResID) { Clip GetWavResClip = null; Object Err = null; try { this.lblStep.$Caption("21"); GetWavResClip = null; GetWavResClip = AudioSystem.getClip(); GetWavResClip.open(AudioSystem.getAudioInputStream(this.LoadResData(ResID))); } catch (Throwable var6) { Interaction.MsgBox((Throwable)var6); return GetWavResClip; } return GetWavResClip; } |
Jabaco Source |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Public Function LoadResData(resID As IResource) As InputStream lblStep.Caption = 20.0 Set LoadResData = Nothing lblStep.Caption = 20.1 Set LoadResData = getClass.getResourceAsStream(resID) lblStep.Caption = 20.2 End Function Public Function GetWavResClip(ResID As IResource) As Clip lblStep.Caption = 21 Set GetWavResClip = Nothing GetWavResClip = AudioSystem.getClip GetWavResClip.open(AudioSystem.getAudioInputStream(LoadResData(ResID))) End Function |
I have set it so that if its not running under Windows, to completely disable the sound, this should allow us to know if that is the main problem or not.
Source code |
|
1 2 3 4 5 6 7 8 |
java.lang.NullPointerException at VB.PictureBox.PaintPicture(PictureBox.jsrc) at Applet1.SetSpriteTile(Applet1.jsrc:436) at Applet1.AniLogo(Applet1.jsrc:853) at Applet1.Timer2_Timer(Applet1.jsrc:833) at Applet1$Timer._Timer(Applet1.jsrc:2334) at VB.Timer.actionPerformed(Timer.jsrc) [... etc] |
Jabaco Source |
|
1 |
picCurTile1.PaintPicture picSprites.Image, (txsrc * 32),(tysrc * 64), (txsrc * 32) + 32,(tysrc * 64) + 64, 0, 0, 32, 64 |
This post has been edited 1 times, last edit by "JasonS" (Jun 24th 2015, 4:50pm)
This post has been edited 3 times, last edit by "JasonS" (Jun 24th 2015, 4:51pm)
This post has been edited 2 times, last edit by "JasonS" (Feb 17th 2014, 10:05pm)