justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]

Question: Re: Hey I didn't know this malloc behavior, that's great. Do you have any suggestions on how large I should alloc the block?
Asked by Rodrigo (200.198.222.x) on December 20 2012, 9:50am
Reply on December 20 2012, 5:53pm:
    Figure out what the reasonable maximum number of files you'd ever open is, and multiply it by the typical file length (it doesn't store the path per file, thankfully, just path then file list).
Comment...
Question: Technologically, what body of programing knowledge was necessary to build up Ninjam? Were you totally alone?
Asked by French Engineeri (147.210.204.x) on December 20 2012, 8:04am
Reply on December 20 2012, 5:53pm:
    Basic audio device programming and understanding, multithreading, and TCP networking stuff... Had some conceptual design discussions with my brother, who also did the first GUI for it.
Comment...
Question: I'm trying GetOpenFileName for multiple files [bit.ly/WpS5J6]. Works OK on Windows, but crashes on Wine. What do you use?
Asked by Rodrigo (187.58.227.x) on December 19 2012, 11:20pm
Reply on December 20 2012, 3:31am:
    I'd just allocate a big buffer and hope for the best... If you malloc() a large buffer and only write the beginning of it, it won't actually reserve physical RAM for the buffer that is unused, so while it will temporarily waste some address space, it won't actually be using the RAM.
Comment...
Question: could you briefly explain the purpose of various LICE_*Bitmaps? thanks
Asked by olilarkin (144.32.156.x) on December 19 2012, 3:39pm
Reply on December 19 2012, 10:12pm:
    • LICE_IBitmap: abstract interface for all lice bitmaps
    • LICE_MemBitmap: bitmap backed by a malloc()'d buffer
    • LICE_SysBitmap: bitmap backed by a buffer that also has a HDC associated with it (on OSX, this implies a SWELL HDC). For these, getDC() returns non-NULL.
    • LICE_SubBitmap: a utility wrapper to have a subimage of another LICE_IBitmap. If you wish to clip drawing to a rectangle, you can use this.
    • LICE_WrapperBitmap: used if you want to wrap some foreign buffer and make it accessible for LICE functions.
Comment...
Question: I am getting Windows 8 for just $15 yes $15 only, do i upgrade or dont fix what aint broke, on Windows 7, i use only for UPNP
Asked by Desert Rain (122.176.9.x) on December 18 2012, 3:20pm
Reply on December 18 2012, 10:44pm:
    I wouldn't bother at this point...
Comment...
Question: Where did you find the money you needed to live and to achieve Ninjam when you were programming it?
Asked by French Engineeri (2.6.243.x) on December 18 2012, 12:23am
Reply on December 18 2012, 10:47pm:
    Ninjam didn't take long to write, mais j'avais deja vendu mon logiciel
Comment...
Question: Can you describe aspect oriented programming (without looking it up)
Asked by Will (70.173.150.x) on December 17 2012, 5:16am
Reply on December 17 2012, 6:48am:
    Nope.
Comment...
Question: Would you ever consider creating a simplified interface for export plugins in Reaper?
Asked by rsn10100 (99.6.119.x) on December 15 2012, 12:41am
Reply on December 16 2012, 11:22pm:
    Perhaps, though I suppose providing some better sample implementations of the current system might be time better spent.
Comment...
Question: (no BR/FR, just a Q!) Is PlayTrackPreviewEx2(0,p,b,m) supposed to work when m in [0;1] (ie MSI%)? if yes, what is b? not 1 AFAIK
Asked by frenchos (46.218.205.x) on December 13 2012, 2:58pm
Reply on December 14 2012, 4:00am:
    b is a flag, where if 1 is set, a buffering thread is used (other bits may be used someday too).

    m is only used if buffering thread used, and if m is 1.0 then it starts on the next measure. if m is -1.0, it starts immediately, but measure-aligned.
Comment...
Question: Your best case scenario for the 21st? - Zombie apocalypse? Alien invasion? Awesome "closing forever" sales?
Asked by schmoe (50.98.73.x) on December 13 2012, 6:05am
Reply on December 14 2012, 3:52am:
    I bet some bars will have a good day...
Comment...
Question: Have you ever considered contracting the fine team at AATranslator to create an OMF/AAF plugin?
Asked by pattste (135.19.199.x) on December 13 2012, 2:53am
Reply on December 14 2012, 3:52am:
    Not really, seems like it'd be better for them to sell licenses anyhow..
Comment...
Question: does WDL_Convoengine support zero latency convolution?
Asked by olilarkin (82.8.6.x) on December 10 2012, 12:22am
Reply on December 10 2012, 1:50am:
    Sort of, check out WDL_ConvolutionEngine_Div.
Comment...
Question: Is there anyway I can draw the content of a.reapeak in a webpage ? (is it using LICE ? is there any web based "LICE player" ? )
Asked by mimard (94.139.51.x) on December 8 2012, 6:44pm
Reply on December 9 2012, 4:07pm:
    Hmm, could probably make some javascript to do that. That might be fun! I will look into it...
Comment...
Question: should i have to #include stdlib.h, string.h, algorithm.h and qualify min() as std:min() to use WDL_Resampler? thanks
Asked by olilarkin (144.32.204.x) on December 7 2012, 5:32pm
Reply on December 8 2012, 2:59pm:
    Oops, yeah, make resample.h include stdio.h and string.h, and then add #ifndef min / #define min(x,y) ((x)<(y)?(x):(y)) / #endif to resample.cpp. I'll update this in the git repo too.
Comment...
Question: Do you ever consider Big O algorithm complexity, or just use common sense?
Asked by Will (70.173.150.x) on December 6 2012, 12:59am
Reply on December 6 2012, 1:22am:
    Absolutely, Big O ends up being very important. Which isn't to say that it is always considered -- sometimes you'll write something simple that works, but then later come back to finding it doesn't scale well enough, and have to go with a more complex (or sometimes more simple) algorithm that scales better.
Comment...
Question: Are you going to implement a "like" and "dislike" for each question for this site?
Asked by Poop (198.208.251.x) on December 4 2012, 8:34pm
Reply on December 5 2012, 12:20am:
    That could be nice. Maybe.
Comment...
Question: Do you still love Toxic Waste?
Asked by Pinkaso (208.64.185.x) on December 3 2012, 10:16pm
Reply on December 4 2012, 3:55pm:
    To be clear, hearting and loving aren't quite the same thing.
Comment...
Question: We also have a 7.1 headphone "Blender" receiver, a 7.1 online music store - we need a 7.1 music player .. interested in helping?
Asked by Douglas (98.202.212.x) on December 3 2012, 4:11pm
Reply on December 4 2012, 3:55pm:
    It looks cool, but I'm not really up for making media players anymore ;)
Comment...
Question: did you saw this? experthuman.com/programming-with-nothing
Asked by ruchira (175.157.164.x) on December 3 2012, 5:51am
Reply on December 4 2012, 3:54pm:
    Cute.
Comment...
Question: Do you have a special bunker to go to for the end of the world in a couple of weeks?
Asked by TwiddlyBit (76.226.127.x) on December 3 2012, 4:53am
Reply on December 4 2012, 3:54pm:
    Haha no, if you were in a bunker you'd miss it!
Comment...
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]
Copyright 2024 Justin Frankel. | RSS