madmaw / marmalade-openal

port of OpenAL to the Made With Marmalade platform
http://connect.creativelabs.com/openal/default.aspx
6 stars 2 forks source link

Marmalade 64 bit build support #11

Open jonp3 opened 9 years ago

jonp3 commented 9 years ago

Hello,

Hope you are still giving support for this module. We are using it in one of our games, but we are finding some problems when testing the binary built with the recent 64 bit configuration (GCC AARCH64). Just trying to play a sound file crashes the game. Do you know if marmalade-openal is not supposed to work with the 64 bit configuration?

Regards,

Jon

Ser40 commented 9 years ago

Same problem here. GCC AARCH64 build just crashes on device (iPhone 6, iOS 8.x). Any progress since you posted this issue here?

jonp3 commented 9 years ago

I'm afraid not. We just replaced marmalade-openal with marmalade's built-in sound library to make it work.

olinorwell commented 9 years ago

jonp3/Ser40 - I read a tip on the Marmalade forum that appears to solve this problem. I have been able to build an AARCH64 version and play sounds without problems.

They say:

Edit al.h to include this when defining ALint, ALuint.

if defined I3D_ARCH_AARCH64

 /*\* signed 64-bit  integer */
 typedef int64_t ALint;
 /** unsigned 64-bit integer */
 typedef uint64_t ALuint;

else

 /*\* signed 32-bit  integer */
 typedef int32_t ALint;
 /** unsigned 32-bit integer */
 typedef uint32_t ALuint;

endif

Hope it helps: (source: https://answers.madewithmarmalade.com/questions/15586/how-to-properly-implement-openal-sound-engine-in-m.html )

jonp3 commented 9 years ago

Oh, I see. Thanks ozzeruk, it arrives a bit late for me, but I'll take it into account if we need to go back to OpenAL.