Skip to content

Commit

Permalink
FMOD|FluidSynth: Import the public Con API
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 4, 2013
1 parent 4c24f18 commit 82d6152
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doomsday/plugins/fluidsynth/include/driver_fluidsynth.h
Expand Up @@ -31,6 +31,7 @@
#include <cassert>
#include <iostream>
#include <fluidsynth.h>
#include "api_console.h"
#include "api_audiod_sfx.h"

extern "C" {
Expand All @@ -56,4 +57,6 @@ audiointerface_sfx_generic_t* DMFluid_Sfx();

#include "fluidsynth_music.h"

DENG_USING_API(Con);

#endif /* end of include guard: __DSFLUIDSYNTH_DRIVER_H__ */
8 changes: 7 additions & 1 deletion doomsday/plugins/fluidsynth/src/driver_fluidsynth.cpp
Expand Up @@ -162,7 +162,13 @@ int DS_Set(int prop, const void* ptr)
* Declares the type of the plugin so the engine knows how to treat it. Called
* automatically when the plugin is loaded.
*/
extern "C" const char* deng_LibraryType(void)
DENG_EXTERN_C const char* deng_LibraryType(void)
{
return "deng-plugin/audio";
}

DENG_DECLARE_API(Con);

DENG_API_EXCHANGE(
DENG_GET_API(DE_API_CONSOLE, Con);
)
3 changes: 3 additions & 0 deletions doomsday/plugins/fmod/include/driver_fmod.h
Expand Up @@ -53,6 +53,7 @@
#include <stdio.h>
#include <cassert>
#include <iostream>
#include "api_console.h"

extern "C" {

Expand Down Expand Up @@ -81,4 +82,6 @@ extern FMOD::System* fmodSystem;
#include "fmod_cd.h"
#include "fmod_util.h"

DENG_USING_API(Con);

#endif /* end of include guard: __DSFMOD_DRIVER_H__ */
8 changes: 7 additions & 1 deletion doomsday/plugins/fmod/src/driver_fmod.cpp
Expand Up @@ -193,7 +193,13 @@ int DS_Set(int prop, const void* ptr)
* Declares the type of the plugin so the engine knows how to treat it. Called
* automatically when the plugin is loaded.
*/
extern "C" const char* deng_LibraryType(void)
DENG_EXTERN_C const char* deng_LibraryType(void)
{
return "deng-plugin/audio";
}

DENG_DECLARE_API(Con);

DENG_API_EXCHANGE(
DENG_GET_API(DE_API_CONSOLE, Con);
)

0 comments on commit 82d6152

Please sign in to comment.