0
0

Hi
Where can I get the example of DSP plugin that will use the config window created by using winapi? Example added in documentation is very poor and it don’t show how to use the config window.

  • You must to post comments
0
0

The "dsppluginviewer" example shows usage of a DSP config dialog. Have you checked this out?

  • You must to post comments
0
0

Yes I check it but I want to make a dsp plugin in dll like in plugin_dev\dsp_gain and I want to use FMOD_DSP_DIALOGCALLBACK config; I make plugin that will decode time for sound DCF-77 time signal and I want to make dialog that will be show decoded time. I simple need somthing like text dialog to display a text using printf or cout. I think the best way to do that will be create a window that will apper afret press the "configure" button on dsppluginviewer after load my plugin.
I try somthing like that:

FMOD_RESULT F_CALLBACK dspconfig (FMOD_DSP_STATE *dsp, int show, void *phwnd)
{ state->gPluginHwnd = CreateWindow("STATIC", "this will be my text", WS_CHILD | WS_VISIBLE, 1, 1, 50, 15, (HWND)phwnd, NULL, 0, 0);
}
but affter press configure button nothing is display. I use CreateDialog function too and its the same problem. Can You tell me how can I display text from plugin into dsppluginviewer window?

I solve the problem. It was Your documentation!
In file documentation\fmodex.chm the FMOD_DSP_DIALOGCALLBACK says:
C Syntax

FMOD_RESULT F_CALLBACK FMOD__FMOD_DSP_DIALOGCALLBACK(
* ,
FMOD_DSP_STATE * dsp_state,
int show,
void * hwnd
);

Parameters

dsp_state

Pointer to the plugin state. The user can use this variable to access runtime plugin specific variables and plugin writer user data. Do not cast this to FMOD_DSP! The handle to the user created DSP handle is stored within the FMOD_DSP_STATE structure.

show

1 = show the dialog, 0 = hide/remove the dialog.

hwnd

This is the target hwnd to display the dialog in. It must not pop up on this hwnd, it must actually be drawn within it.

But its wrong param order. Correct syntax is:
C Syntax

FMOD_RESULT F_CALLBACK FMOD__FMOD_DSP_DIALOGCALLBACK(
* ,
FMOD_DSP_STATE * dsp_state,
void * hwnd,
int show
);

I think that will be good idea to correct that in future.

  • You must to post comments
0
0

I’m glad you have it working.

Also thanks for the heads up about the documentation, I’ll fix that up for our next release.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.