ok, i’ve got

Dim fss As Long, lNumSamples As Long
lNumSamples = 1024 ‘2k
‘Allocate the memory
fss = FSOUND_Sample_Alloc(0, lNumSamples, FSOUND_NORMAL _
, 44100, 0, 0, 0)
‘Write to block
Dim sPtr1 As Long, lenP1 As Long ‘pointers to block
Dim sPtr2 As Long, lenP2 As Long ‘len of section
‘!Pointer 2 is for if wrap-around!
Dim blnResult As Boolean
‘set to start of block [length in bytes!] ‘Using 16-bit
blnResult = FSOUND_Sample_Lock(fss, 0, lNumSamples * 2, sPtr1, sPtr2, lenP1, lenP2)

Now just how do i write numbers to this memory?
Can’t seem to get my head around it.

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.