0
0

I am using Windows XP Home CHS, FMOD Ex 4.11.6
When I use these functions (called by FMOD.createSound)
[code:nlmiv0m1]
[DllImport(VERSION.dll, CharSet = CharSet.Unicode)]
private static extern RESULT FMOD_System_CreateSound (IntPtr system, string name_or_data, MODE mode, ref CREATESOUNDEXINFO exinfo, ref IntPtr sound);
[DllImport(VERSION.dll, CharSet = CharSet.Unicode)]
private static extern RESULT FMOD_System_CreateStream (IntPtr system, string name_or_data, MODE mode, ref CREATESOUNDEXINFO exinfo, ref IntPtr sound);

[/code:nlmiv0m1]
I will get a ERR_FILE_NOTFOUND, but the file exists actually.

So I removed "CharSet = CharSet.Unicode", it came to work.
I also tried "CharSet = CharSet.Ansi" , which also works.
CharSet = CharSet.Auto seemed doesn’t work.

BTW:
I then added some Chinese chars in the filename, it is still OK.

These functions don’t have CharSet=, but they work well.
[code:nlmiv0m1]
[DllImport (VERSION.dll)]
private static extern RESULT FMOD_System_CreateSound (IntPtr system, string name_or_data, MODE mode, int exinfo, ref IntPtr sound);
[DllImport (VERSION.dll)]
private static extern RESULT FMOD_System_CreateStream (IntPtr system, string name_or_data, MODE mode, int exinfo, ref IntPtr sound);

[/code:nlmiv0m1]

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.