Author Topic: uFMOD : XM_NOLOOP Funtion  (Read 3315 times)

0 Members and 1 Guest are viewing this topic.

Offline Mynes

  • ZX 81
  • *
  • Posts: 11
  • Karma: 3
    • View Profile
uFMOD : XM_NOLOOP Funtion
« on: October 16, 2008 »
Well i'm stuck with this one. . .

I have my code set to load the XM from file (externally)

Code: [Select]
uFMOD_PlaySong(@"Music\MY.xm",0 ,XM_FILE)
but i can't seem to get the XM_NOLOOP function mentioned here ;

Code: [Select]
XM_NOLOOP    An XM track plays repeatedly by default. Specify
'                    this flag to play it only once.

To work :/ any ideas

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1294
  • Karma: 466
    • View Profile
    • my stuff
Re: uFMOD : XM_NOLOOP Funtion
« Reply #1 on: October 16, 2008 »
i've got *absolutely* no clue about ufmod but there's probably a loop-command in the tune itself, thus ufmod never actually reaches the end of the track.
Challenge Trophies Won:

Offline Mynes

  • ZX 81
  • *
  • Posts: 11
  • Karma: 3
    • View Profile
Re: uFMOD : XM_NOLOOP Funtion
« Reply #2 on: October 16, 2008 »
I got some help :D just after i posted it,

if anyone needs it example would be

Code: [Select]
uFMOD_PlaySong(@"Music\MY.xm",0 ,XM_FILE OR XM_NOLOOP)

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: uFMOD : XM_NOLOOP Funtion
« Reply #3 on: October 16, 2008 »
Thanks for answering your own question Mynes :)

Nice little code tip there too.
Shockwave ^ Codigos
Challenge Trophies Won: