- each iteration in render loop wasapi uses one buffer (ie. 256frames/1024bytes). first buffer pointer 0xXXXXXXXX, second buffer will have pointer 0xXXXXXXXX + 1024, and thirty will back to first 0xXXXXXXXX (= seconds - 1024). so then for what we need GetBuffer? need only get it once before render loop. so then can remove releasebuffer also, player run. OK, replace GetBuffer with calculation pointer for each iteration (good address can be calculate by xor 1024). try this trick, must be much better. it is my own idea, not reading on internet.sbgk wrote:removing getbuffer and release would be good, do you replace them with something else ? I found some code that someone had written to replace these on osx so it could run windows, can send a link if I can find it.
do you massage the data ? Is that what the fibonacci comment is about ?
the player has no file read code, the control starts the player, the player allocates memory and the control gets the address of the memory then loads it with data and then hands off to the player. communication by reading bytes in the allocated memory ie when =1 then the data is loaded and the playback can start. it's c++, but with minimised winmaincrtstartup and no dll linking. when I had the file code in the player I did convert it to c functions, but never compiled the whole thing as c, would be interested to know how to do that.
- and interesting thing: result of h=CreateEventA(0,0,0,0) give constant interger, in my case h=300, sometime 304, always, even after restarting windows. tried with constant, of course big benefit coz it used in reder loop.
- i tried with 2 files/2 processes model, main detach child, but still affect SQ. each thing in read file process affect render process although first already terminated. so then i think need 3-files/3-process, will try. maybe can absolutely isolate read file task. I/O device very bad for audio.
- sbgk, last lekt versions doesn't use any function from msvcr120.dll but i can't compile without it. how do you make this? i see mqn works without it.