dcsimg
Results 1 to 3 of 3

Thread: Replacement of Fmod library

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2018
    Posts
    2

    Replacement of Fmod library

    Hi all,
    I’m doing a spectro analyzer in VB6 to listen to mp3 music files, flac etc …
    I found an old code to draw the spectro graphic.
    When I play the flac files there is no spectro that means that the call ‘FSOUND_DSP_GetSpectrum’ to the fmod library is not compatible.
    I have seen that there is fmod_ex, I would like to know if it is compatible to read the flac files and which series the new call to replace ‘FSOUND_DSP_GetSpectrum’ it with the old one.

    The basic call code for the spectro is as follows:

    Code:
        Dim i As Long
        Dim dits(1023) As Single
        Dim ddits(1023) As Integer
        Dim dsppectrum As Long
        'Display
            dsppectrum = FSOUND_DSP_GetSpectrum               'get reference of pointer
            CopyMemory dits(0), ByVal dsppectrum, 1024 * 4     'convert long into integer  
                                                                                         'using pointers
            For i = 0 To 1023 Step 1
                ddits(i) = dits(i) * 1000000
           Next

  2. #2

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2018
    Posts
    2

    Re: Replacement of Fmod library

    Hello

    This sample code does not use the Fmod or Fmod_Ex libraries.
    I do not know why it does not work, I have installed the Creatyve SB X-FI sound card and I have tried all the modes and the program does not work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width