0
0

A fix for the fmoddyn.h file.

The Windows command LoadLibrary() actually calls LoadLibraryW() if the UNICODE flag is defined. As such a snippet like the following needs to be used

[code:2xznuyli]#if defined(UNICODE) && (defined(WIN32) || defined(_WIN32))
static FMOD_INSTANCE *FMOD_CreateInstance(wchar_t *dllName)

else

static FMOD_INSTANCE *FMOD_CreateInstance(char *dllName)

endif[/code:2xznuyli]

Otherwise you get errors about converting char* to wchar_t* (or WCHAR*)

I haven’t tested the #if defined() syntax above so that may need tweaking.

The next issue is actually playing music files that have unicode characters in their name or path.

Is there a way to just pass the file handle to FMOD instead of the file name? So I could deal with the Unicode on my end.

Why is there no Unicode support in FMOD 3? Please dont say "Well in FMOD Ex…." because FMOD Ex is useless (see http://52.88.2.202/forum/viewtopic.php?t=9010 )

  • You must to post comments
0
0

You could try overwriting the file callbacks and just forcing the strings to char *, then casting them back to wchar * when you get them in your callback.

FMOD Ex does support unicode, and instead of ‘giving up’ you could have written to us with any useful information that would help us find any ‘alsa issues’.

  • You must to post comments
0
0

[quote="brett":e3o9l70l]You could try overwriting the file callbacks and just forcing the strings to char *, then casting them back to wchar * when you get them in your callback.[/quote:e3o9l70l]

I am trying that right now (the call backs), why dont you simply have some of these premade in a header file, no need to even recompile FMOD.

[quote="brett":e3o9l70l]FMOD Ex does support unicode, and instead of ‘giving up’ you could have written to us with any useful information that would help us find any ‘alsa issues’.[/quote:e3o9l70l]

I made a nice big topic, that even had someone confirming that they had the same issues, and asked
[color=cyan:e3o9l70l][b:e3o9l70l]Anyone know why this would happen, or how to get more info (no errors are reported by FMOD during any stage of this) [/b:e3o9l70l][/color:e3o9l70l]

Yet I got nothing from you. As far as I can tell you either dont care, or dont know. You browse the forums enough, and have posted many times since then, and apparently now even read the topic, and still offer nothing. No I havent given up, I am simply waiting for a response. And while I wait, my end users still need to play audio files.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.