Page 1 of 3
Mem address crash discussion (split from DSP code 2)
Posted: Sat Apr 11, 2015 11:05 pm
by Youlean
Here is DLL for mem creating. I hope that it works. I am not sure if it gives accurate address tho... Please test it...
Try optimized version first, it is not working, than try normal version...
Re: Custom DSP Code 2 (comunity project)
Posted: Sun Apr 12, 2015 12:07 am
by KG_is_back
Youlean wrote:Here is DLL for mem creating. I hope that it works. I am not sure if it gives accurate address tho... Please test it...
Try optimized version first, it is not working, than try normal version...
Both only output the mem size, but not address.
Re: Custom DSP Code 2 (comunity project)
Posted: Sun Apr 12, 2015 12:17 am
by Youlean
KG_is_back wrote:Youlean wrote:Here is DLL for mem creating. I hope that it works. I am not sure if it gives accurate address tho... Please test it...
Try optimized version first, it is not working, than try normal version...
Both only output the mem size, but not address.
You mean input equal to output?
Try locating DLL manually...
Re: Custom DSP Code 2 (comunity project)
Posted: Sun Apr 12, 2015 10:05 am
by Tronic
To have a correct memory address from a DLL,
in the manual there is a hidden information between words,
when you create an input and output to the DLL component,
FlowStone automatically assigns a memory address based on the type specified,
so just catch and use the pointer addresses, and output them as a list,
this gives us the opportunity to have as many memories as you want and the correct type,
just increasing the inputs to the module DLL,
with this I am able to write and read in the DLL memory without using any link to it.
Re: Custom DSP Code 2 (comunity project)
Posted: Sat Apr 18, 2015 4:59 pm
by Youlean
Hey, I think that this should now be working correctly...
If it works now, please report. Thanks.
Re: Custom DSP Code 2 (comunity project)
Posted: Sat Apr 18, 2015 6:26 pm
by Tronic
as mentioned above, you do not need to have a Frame to Mono and vice versa, you can just created into the DLL, an NEWFLOATARRAY, get the pointer, and output it as integer value.
Re: Custom DSP Code 2 (comunity project)
Posted: Sat Apr 18, 2015 6:32 pm
by Youlean
Tronic wrote:as mentioned above, you do not need to have a Frame to Mono and vice versa, you can just created into the DLL, an NEWFLOATARRAY, get the pointer, and output it as integer value.
Yes, but than you can't change it's size. The size must be then hard coded.
Re: Custom DSP Code 2 (comunity project)
Posted: Sat Apr 18, 2015 8:02 pm
by Tronic
you can assign the size with an external value,
for already created array just copy the old content and recreate it with different sizes.
Re: Custom DSP Code 2 (comunity project)
Posted: Sat Apr 18, 2015 8:11 pm
by Youlean
Tronic wrote:you can assign the size with an external value,
for already created array just copy the old content and recreate it with different sizes.
Tronic, either you or me is not getting the point here.
If you want to create mem, just use mem create primitive, but KG asked for mem creation to give address at stream speed which need mono to frame if you want to do it with dll...
Re: Custom DSP Code 2 (comunity project)
Posted: Sat Apr 18, 2015 8:19 pm
by Tronic
The memory address has nothing to do with the stream speed, it is only a pointer to the heap.
Excuse me if I insist, but your code only wastes resources, to process an empty buffer,
even if you emit only poiter memory.
So the point is, why have the value of a pointer to memory, at stream speed?
Edit: the mem create primitive, have some problem with alignment when retriggered.