[Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with graphic components

Ru Vuott vuott at ...325...
Fri Jan 2 20:58:46 CET 2015


Hello Benoît,

I come back on this question, because I suppose I found the problem.

Well, "Music.SoundFontPath" doesn't work, if I set the "Volume". 
So, if I comment Volume setting, it works.

However, I send you a little and simple project, here attached.

( Try to activate and deactivate Volume setting in  " Public Sub Slider1_Change() "  routine. )


Regards.
vuott




--------------------------------------------
Ven 2/1/15, Ru Vuott <vuott at ...325...> ha scritto:

 Oggetto: Re: [Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with	graphic components
 A: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
 Data: Venerdì 2 gennaio 2015, 20:07
 
 What a strange... I
 generated a new little project to send you, and now it
 works.
 
 Bah... perhaps I had
 some conflict... I don't know.
 
 Well, ok, I suppose no problems anymore on
 "Music.SoundFontPath".
 
 Otherwise, I'll keep you informed.
 
 Thanks and bye.
 vuott
 
 
 
 --------------------------------------------
 Ven 2/1/15, Benoît Minisini <gambas at ...1...>
 ha scritto:
 
  Oggetto: Re:
 [Gambas-user] SDL2 : "Music.SoundFontPath"
 doesn't work with graphic components
  A:
 "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
  Data: Venerdì 2 gennaio 2015, 19:10
  
  Le 02/01/2015 18:37, Ru
  Vuott a écrit :
  > Hello
 Benoît,
  >
  > I
 noticed "
  Music.SoundFontPath "
 property doesn't work, if I
  use any
 graphic component.
  >
 
 > So, for example, this works:
  >
  > Public Sub Main()
 
 >
  >     With
 
 Music
  >       .SoundFontPath
  = "/path/of/soundbank/file.sf2"
  >   
 
    .Load("/path/of/my/file.mid")
  >       .Play
  > 
    End With
  >
  > 
    While
  Music.State = Music.Playing
  >       
  Print
 CStr(Date(0, 0, 0, 0, 0, 0, Music.Pos * 1000))
  >     Wend
  >
  > End
  >
  >
  >
  -
 - - - -- - --- -- - - - - - - - - -
  >
  > This does NOT work:
  it
 doesn't find the soundbank file.sf2 :
 
 >
  > Public Sub
 
 Button1_Click()
  >
 
 > 
     With Music
 
 >   
     .SoundFontPath =
  "/path/of/soundbank/file.sf2"
  >   
 
    .Load("/path/of/my/file.mid")
  >       .Play
  > 
    End With
  >
  >
 End
  >
  > I
 don't
  understand why.
 
 >
  >
  >
  > Regards
  > vuott
  >
  
  So am
 I, but please post a
  little project so that
 I can test.
  
  Regards,
  
  --
  
  Benoît Minisini
  
 
 ------------------------------------------------------------------------------
  Dive into the World of Parallel
 Programming!
  The Go Parallel Website,
  sponsored by Intel
  and
 developed in partnership with Slashdot Media, is your
  hub for all things parallel software
  development, from weekly thought
  leadership
  blogs to news,
 videos, case studies, tutorials and more.
 
 Take a
  look and join the conversation
 now.
  http://goparallel.sourceforge.net
 
 _______________________________________________
  Gambas-user mailing list
  Gambas-user at lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 ------------------------------------------------------------------------------
 Dive into the World of Parallel Programming!
 The Go Parallel Website,
 sponsored by Intel
 and developed in partnership with Slashdot Media, is your
 hub for all things parallel software
 development, from weekly thought
 leadership
 blogs to news, videos, case studies, tutorials and more.
 Take a
 look and join the conversation now.
 http://goparallel.sourceforge.net
 _______________________________________________
 Gambas-user mailing list
 Gambas-user at lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SDL2_Midi-0.0.1.tar.gz
Type: application/gzipped-tar
Size: 4365 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20150102/65ba69e3/attachment.bin>


More information about the User mailing list