

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
6 messages in net.java.dev.jna.usersRe: [jna-users] Basic understanding o...| From | Sent On | Attachments |
|---|---|---|
| Andreas Rettig | Apr 1, 2009 1:24 am | |
| Timothy Wall | Apr 1, 2009 2:33 am | |
| Andreas Rettig | Apr 1, 2009 2:49 am | |
| Timothy Wall | Apr 1, 2009 3:56 am | |
| Andreas Rettig | Apr 1, 2009 6:32 am | |
| Novatchkov Hristo | Apr 1, 2009 8:48 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [jna-users] Basic understanding of working with Mac OS X Api | Actions... |
|---|---|---|
| From: | Timothy Wall (twal...@dev.java.net) | |
| Date: | Apr 1, 2009 3:56:50 am | |
| List: | net.java.dev.jna.users | |
that's probably the easiest, or look up the ascii values as hex and construct the values by hand.
On Apr 1, 2009, at 5:49 AM, Andreas Rettig wrote:
Ok, thanks a lot.
That means I have to print these values out before in native code to use them?
Am 01.04.2009 um 11:33 schrieb Timothy Wall:
Those are integer constants, sort of a mac-ism. The ASCII values for the characters are combined to construct an integer value.
On Apr 1, 2009, at 4:24 AM, Andreas Rettig wrote:
Hi,
I'm still pretty new to JNA, but managed to build and understand access to HID-Devices via Windows-API with it. Now I'm trying my first steps into JNA and Mac OS X and I've problems understanding how to work with the Mac OS X API.
How do I work with enums like that, that means how can I get these Pointers out of, for example from CoreAudio...
enum { kAudioHardwarePropertyProcessIsMaster = 'mast', kAudioHardwarePropertyIsInitingOrExiting = 'inot', kAudioHardwarePropertyDevices = 'dev#', kAudioHardwarePropertyDefaultInputDevice = 'dIn ', kAudioHardwarePropertyDefaultOutputDevice = 'dOut', kAudioHardwarePropertyDefaultSystemOutputDevice = 'sOut', kAudioHardwarePropertyDeviceForUID = 'duid', kAudioHardwarePropertyProcessIsAudible = 'pmut', kAudioHardwarePropertySleepingIsAllowed = 'slep', kAudioHardwarePropertyUnloadingIsAllowed = 'unld', kAudioHardwarePropertyHogModeIsAllowed = 'hogr', kAudioHardwarePropertyRunLoop = 'rnlp', kAudioHardwarePropertyPlugInForBundleID = 'pibi', kAudioHardwarePropertyUserSessionIsActiveOrHeadless = 'user' };
What's happening there internally?







