Rev 422 | Rev 430 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 422 | Rev 424 | ||
---|---|---|---|
Line 144... | Line 144... | ||
144 | 144 | ||
145 | #ifdef SHOW_HOST_DEBUG |
145 | #ifdef SHOW_HOST_DEBUG |
146 | tmp = (char*)malloc(512); |
146 | tmp = (char*)malloc(512); |
147 | sprintf(tmp, "Host signature: '%c%c%c%c' (%d)\nMaxSpace32 = %d\nMaxSpace64 = %lld\nNum buffer procs: %d", (pb->hostSig >> 24) & 0xFF, (pb->hostSig >> 16) & 0xFF, (pb->hostSig >> 8) & 0xFF, pb->hostSig & 0xFF, pb->hostSig, pb->maxSpace, pb->maxSpace64, pb->bufferProcs->numBufferProcs); |
147 | sprintf(tmp, "Host signature: '%c%c%c%c' (%d)\nMaxSpace32 = %d\nMaxSpace64 = %lld\nNum buffer procs: %d", (pb->hostSig >> 24) & 0xFF, (pb->hostSig >> 16) & 0xFF, (pb->hostSig >> 8) & 0xFF, pb->hostSig & 0xFF, pb->hostSig, pb->maxSpace, pb->maxSpace64, pb->bufferProcs->numBufferProcs); |
148 | simplealert(tmp); |
148 | simplealert(tmp); |
- | 149 | free(tmp); |
|
149 | #endif |
150 | #endif |
150 | 151 | ||
151 | if (pb->hostSig == HOSTSIG_ADOBE_PREMIERE) { |
152 | if (pb->hostSig == HOSTSIG_ADOBE_PREMIERE) { |
152 | // DM 19.07.2021 : Tried running the 8BF file in Adobe Premiere 5 (yes, that's possible, |
153 | // DM 19.07.2021 : Tried running the 8BF file in Adobe Premiere 5 (yes, that's possible, |
153 | // and there is even a FilterFactory for Premiere!), |
154 | // and there is even a FilterFactory for Premiere!), |
Line 213... | Line 214... | ||
213 | // Either I do something wrong, or maybe it cannot be used to store data between invocations? |
214 | // Either I do something wrong, or maybe it cannot be used to store data between invocations? |
214 | // - Using malloc(), which works also fine and is more independent from the host and easier |
215 | // - Using malloc(), which works also fine and is more independent from the host and easier |
215 | *data = (intptr_t)malloc(sizeof(globals_t)); |
216 | *data = (intptr_t)malloc(sizeof(globals_t)); |
216 | if (*data == 0) return; |
217 | if (*data == 0) return; |
217 | gdata = (globals_t*)*data; |
218 | gdata = (globals_t*)*data; |
218 | #ifdef _WIN32 |
219 | //#ifdef _WIN32 |
219 | gdata->pluginDllSliderMessageId = 0; |
220 | //gdata->pluginDllSliderMessageId = 0; |
220 | #endif |
221 | //#endif |
221 | gdata->standalone = gdata->parmloaded = false; // they will be set later |
222 | //gdata->standalone = gdata->parmloaded = false; // they will be set later |
- | 223 | memset(gdata, 0, sizeof(globals_t)); |
|
222 | } |
224 | } |
223 | else { |
225 | else { |
224 | // We have data from the previous invocation. Use it instead |
226 | // We have data from the previous invocation. Use it instead |
225 | gdata = (globals_t*)*data; |
227 | gdata = (globals_t*)*data; |
226 | } |
228 | } |