And I've got output! I'm upstairs in my office and the laser is in the basement, so the output is just farting over my speakers. It'll be another weekend before I get to hook everything together.
It's great what can be developed over a few beers.
JNative is pretty neat, I'll be using it more and more I think. On Saturday you raised the * point about pointers. JNative provides a mechanism to allocate heap memory to stuff bytes into and then return a pointer to that location which is then passed to the dll in the function call. Does this stuff look familiar?
dll test
Nov 16, 2009 12:18:06 AM, [DEBUG]Creating Lib info (name = EzAudDac.dll, handle = cd50000, inUseFor = 1)
1
Nov 16, 2009 12:18:07 AM, [DEBUG]Using org.xvolks.jnative.pointers.memory.HeapMemoryBlock memory reservation strategy
Nov 16, 2009 12:18:07 AM, [DEBUG]Resusing Lib info (name = EzAudDac.dll, handle = cd50000, inUseFor = 2)
EzSound Dac Driver V1.08b by Andrew Kibler
Loading file: F:\WINDOWS\system32\EzAudDac.ini
Searching for sounds cards..
Sound Card 1 : Realtek HD Audio output
Sound Card 2 : USB Audio
Found 2 Sound Cards.
SoundCard 1 Initializing...
SoundCard 1 Initialized. Speakers:2 Latency:2ms Minbuf:48 ms
SoundstreamCreated. (2952790017)
SoundOutputStarted
Sound init done.