Previous Topic Index Next Topic
[API function]

FSOUND_SetHWND

This is an optional function to set the window handle of the application
you are writing, so Directsound can tell if it is in focus or not.

signed char F_API FSOUND_SetHWND(
void *hwnd
);

Parameters

hwnd Pointer to a HWND windows handle of your application.
NULL means it will pick the foreground application window.

Return Value

On success, TRUE is returned.
On failure, FALSE is returned.

Remarks

This function cannot be called after FMOD is already activated with FSOUND_Init.
It must be called before FSOUND_Init, or after FSOUND_Close.
---------
FMOD uses GetForegroundWindow if this function is not called.

See Also

FSOUND_Close , FSOUND_Init

This document copyright ©Firelight Multimedia, 1999-2001. All rights reserved.
Generated Thu Sep 13 00:18:09 2001 by SourceDoc v0.10, the automated source code documenter.