diff options
author | Sven Gothel <[email protected]> | 2010-12-13 07:30:20 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-12-13 07:30:20 +0100 |
commit | b0c39f3f4259cf6eca8e1f7af0f0924cf7472abe (patch) | |
tree | 613781a5703e2052c21b1c35242c3d948bebcf72 /make/joal-alc.cfg | |
parent | a68be2859454b75539cc5e44eb23129745932db3 (diff) |
Bring back JOAL (code fixes and project structure)
- Use GlueGen DynamicLibraryBundle
- Fix alGetString
- Proper test/junit structure
- NB project fix
- add artifacts.properties and jar's manifest
- proper ZIP file structure
TODO:
- check on windows and osx
- actually hear a sound
- add jnlp file template
- joal-demos
Diffstat (limited to 'make/joal-alc.cfg')
-rwxr-xr-x | make/joal-alc.cfg | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/make/joal-alc.cfg b/make/joal-alc.cfg index 3134a06..b8013ab 100755 --- a/make/joal-alc.cfg +++ b/make/joal-alc.cfg @@ -10,7 +10,7 @@ Extends ALC ALCConstants EmitProcAddressTable true ProcAddressTableClassName ALCProcAddressTable -GetProcAddressTableExpr ALProcAddressLookup.getALCProcAddressTable() +GetProcAddressTableExpr alcProcAddressTable ProcAddressNameExpr LP $UPPERCASE({0}) Import java.io.UnsupportedEncodingException @@ -27,15 +27,18 @@ Ignore ^ALC_.+ # to use this routine to look up the ALC function pointers. Ignore alcGetProcAddress -# Move the body of alcGetString to a private method so we can +# Manually implement alcGetString so we can # implement alcGetString(NULL, ALC_DEVICE_SPECIFIER) in another method -RenameJavaMethod alcGetString alcGetStringImpl -# Specify the return length of this function with our own custom strlen -ReturnValueCapacity alcGetStringImpl strlen_alc(_device_ptr, {1}, _res) +ReturnsString alcGetString +ManuallyImplement alcGetString +ForceProcAddressGen alcGetString +## Specify the return length of this function with our own custom strlen +##ReturnValueCapacity alcGetStringImpl strlen_alc(_device_ptr, {1}, _res) # Note that we don't declare this as "ReturnsString" because we're # going to wrap it in another method IncludeAs CustomJavaCode ALC joal-alc-CustomJavaCode.java +IncludeAs CustomJavaCode ALCAbstractImpl joal-alcabstract-CustomJavaCode.java # These routines use strings ArgumentIsString alcIsExtensionPresent 1 @@ -55,14 +58,5 @@ ReturnValueCapacity alcGetCurrentContext 0 ReturnValueCapacity alcGetCurrentDevice 0 ReturnValueCapacity alcOpenDevice 0 -# Need a prologue on alcOpenDevice and epilogue on alcMakeContextCurrent -# to set up the proc address tables the first time -JavaPrologue alcOpenDevice ALProcAddressLookup.resetALCProcAddressTable(); -JavaEpilogue alcMakeContextCurrent ALProcAddressLookup.resetALProcAddressTable(); - -# To be able to use alcGetString before a context is created we need -# to instrument that routine as well -JavaPrologue alcGetString ALProcAddressLookup.resetALCProcAddressTable(); - IncludeAs CustomCCode joal-common-CustomCCode.c IncludeAs CustomCCode joal-alc-impl-CustomCCode.c |