jtransc / gdx-backend-jtransc

GDX backend for JTransc: targeting every platform lime supports (html5, windows, linux, mac, android, ios...) (flash is wip) (consoles + unity likely to be supported in the future)
23 stars 6 forks source link

LimeMusic_.hx: Unexpected + #96

Closed winniehell closed 6 years ago

winniehell commented 6 years ago

When I run runHtml5 in https://github.com/jtransc/jtransc-examples/tree/master/libgdx/invaders, I get:

src/com/jtransc/media/limelibgdx/LimeMusic_.hx:277: characters 38-39 : Unexpected +

@SergeyLabutin Could it be that this:

https://github.com/jtransc/gdx-backend-jtransc/blob/8b5fbdd6648c866a24e0ff795a6c58a3d974b4b5/gdx-backend-jtransc/src/com/jtransc/media/limelibgdx/LimeMusic.java#L128-L129

needs to be

 @HaxeMethodBody("if (track.buffer == null) return 0; " + 
    "return track.gain;") 
intrigus commented 6 years ago

Did you try your suggestion? If it works, feel free to send a PR :)

winniehell commented 6 years ago

Did you try your suggestion?

@intrigus I made the change and this error went away. Now I have a new one though: #98

If it works, feel free to send a PR :)

There it is: https://github.com/jtransc/gdx-backend-jtransc/pull/97