0
0

I updated fmodex and now my player no longer loads/plays music when using unicode. Is there anything I must consider when updating to the following (affected) versions:
18.27+
20.18+
22.11+
24.02+
25.02+

I tried a bit with the examples to reproduce but end up with all kinds of errors, e.g.
FMOD error! (56) Error initializing output device, but more specifically, the output device is already in use and cannot be reused.
when using FMOD_System_PlaySound.

  • You must to post comments
0
0

k, now did a clean approach on VB6 playstream example;
log files / project:
http://www.ctuser.net/_files/playstream … _425xx.zip

code excerpts:
[code]
Public Declare Function FMOD_System_CreateSoundEx Lib "fmodex.dll" Alias "FMOD_System_CreateSound" (ByVal system As Long, Name_or_data As Any, ByVal Mode As FMOD_MODE, ByRef exinfo As FMOD_CREATESOUNDEXINFO, ByRef Sound As Long) As FMOD_RESULT

Public Function FMOD_System_CreateStream(ByVal system As Long, ByVal Name_or_data As String, ByVal Mode As FMOD_MODE, ByRef Sound As Long, Optional ByVal UseUnicode As Boolean = False) As FMOD_RESULT
Dim exinfo As FMOD_CREATESOUNDEXINFO
Dim result As FMOD_RESULT
Dim xByteA1() As Byte
Dim xLong1 As Long

exinfo.cbsize = LenB(exinfo)
If UseUnicode Then
    xLong1 = Len(Name_or_data) * 2&
    ReDim xByteA1(xLong1 + 1&)
    Call CopyMemory(xByteA1(0), ByVal StrPtr(Name_or_data), xLong1)
    Debug.Print Hex(Mode Or FMOD_CREATESTREAM Or FMOD_UNICODE)
    Stop
    result = FMOD_System_CreateSoundEx(system, xByteA1(0), Mode Or FMOD_CREATESTREAM Or FMOD_UNICODE, exinfo, Sound)
Else
    result = FMOD_System_CreateSoundEx(system, ByVal Name_or_data, Mode Or FMOD_CREATESTREAM, exinfo, Sound)
End If
FMOD_System_CreateStream = result

End Function
[/code]

  • You must to post comments
0
0

same problem over here
the Fix in 4.24.02 seems to cause this bug:

  • Fixed CD loading to allow driver letters specified using Unicode.
  • You must to post comments
0
0

from my point of view the problem is still persistent.

  • You must to post comments
0
0

Not testet that much, but appears still not working (4.26.00).
BTW: If it can’t unicode anymore, you may at least consider supporting Windows 95 instead.

  • You must to post comments
0
0

it would be a pitty if unicode wont work again.
I just tested again as well. Unfortunately, it’s not working.

  • You must to post comments
0
0

I have just tested opening a file using unicode characters and it loaded successfully, you will need to be more specific with the particular problem you are having.

Can you demonstrate this in one of the C++ examples?

  • You must to post comments
0
0

Alternatively PureBasic or Flat Assembler (very raw code!)

  • You must to post comments
0
0

Hi,

We have a big problem with the last fmod updates. We can’t load file by unicode anymore. We have not changed anything on our code.

What’s the problem and why is there no solution since a while?

Max.

  • You must to post comments
0
0

Big update:

did the assembly application, and while testing I discovered this:
it works eg. when filename is
Test.ogg
but failed if using the full path: Z:\Unicode\Test.ogg

anyway, the file for testing:
http://ctuser.net/_files/fmodplay.zip
includes full version with some console output, and a extreme small one just playing the sound.
supports both unicode and ansi, of course (ansi on win9x, and always uses unicode on NT series)
source included (best look for PlayItNow in FModPlay_Console_Extreme.fasm – its pretty small anyway)

  • You must to post comments
0
0

Ah, key piece of information "Z:\Unicode\Test.ogg" doesn’t work, my tests used the format "/Unicode/Test.ogg". I see what is going on, easy fix, sorry for the long delay on this problem.

This will be fixed for our next release, should be out by the end of the week.

  • You must to post comments
Showing 10 results
Your Answer

Please first to submit.