hypersurge / awe6

awe6, the inverted game framework (Haxe)
http://awe6.org
MIT License
79 stars 11 forks source link

Demo app crashes with target mac #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Take demo app from the SVN
2. compile using nme test awe6.nmml mac
3. start the game, move mouse over button

What is the expected output? What do you see instead?
Rollover effect, instead app crashes. It seems that _kernel.audio seems to be 
the problem, as soon as this line is removed rollover-effect works. Then 
crashes on click, when _kernel.audio is removed here it works and so on.

What version of the product are you using? On what operating system?
Haxe 2.0.9, NME 3.3.2, newest HXCPP from SVN Trunk, newest awe6 from Trunk r434

Original issue reported on code.google.com by tobias.r...@gmail.com on 24 May 2012 at 8:20

GoogleCodeExporter commented 9 years ago
Try changing the audio format in awe6.core.drivers.nme.AudioManager (line 50) 
from ".ogg" to ".mp3".  Or try other codecs (and add the appropriate resources 
to the nmml files).  What audio format would you normally work with on a Mac?  
Let us know what works.

Original comment by robert.f...@hypersurge.com on 24 May 2012 at 8:55

GoogleCodeExporter commented 9 years ago
Yes, Mp3 is working. But the Menu Music stops as soon as one moves over the 
button. aac doesn't, even though the file exists I get an error message: 

Assets.hx:215: [nme.Assets] There is no Sound asset with an ID of 
"assets/audio/MusicMenu.aac"
Assets.hx:150: [nme.Assets] There is no BitmapData asset with an ID of 
"assets/audio/MusicMenu.aac"
Assets.hx:188: [nme.Assets] There is no Font asset with an ID of 
"assets/audio/MusicMenu.aac"

Original comment by andr...@ardex.de on 25 May 2012 at 4:26

GoogleCodeExporter commented 9 years ago
And the mp3 seems to be playing at least twice as fast.

Original comment by andr...@ardex.de on 25 May 2012 at 4:28

GoogleCodeExporter commented 9 years ago
Yes, mp3 suffers same issues on Windows (double timed and unreliable looping).  
aac "should" work, but NME doesn't recognise it as a sound format by default 
(iirc) - so you need to tag it as such in the nmml.

I am closing this issue as it's really NME usage related, rather than a code 
bug.  Thanks.

Original comment by robert.f...@hypersurge.com on 25 May 2012 at 4:35