Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: A little trouble with Game.PlayMusic  (Read 3642 times)

0 Members and 1 Guest are viewing this topic.

Javi-Wan Kenobi

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 34
    • View Profile
A little trouble with Game.PlayMusic
« on: April 15, 2008, 10:30:11 AM »

When I was developing and debugging my game, the game.PlayMusic("somemusicfile") lines worked fine.
With the compiled game, these script lines take a lot of time (five secons or so) to run. May it be because the music files are too big (and they're compressed on the music.dcp file)  It will work faster with these files uncompressed?
The original music files are ogg files, from 5 to 15 MB. What's the best file format and file size for a better efficiency?
Logged

MMR

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 349
  • http://mmrdeveloper.wordpress.com/
    • View Profile
    • TinyWME
Re: A little trouble with Game.PlayMusic
« Reply #1 on: April 15, 2008, 12:29:32 PM »

I think the size of music files doesn't matter, OGG files are the best for WME (IMHO).

You shouldn't compress music files inside the package that contain the ogg files (in ProjectManager go to menu Project->Project settings->Filters tab), you could see there a text field named 'do not compress'. You should have a text like this "*.wav;*.ogg;*.png" (without quotes). Try to see if that's your problem.

 ;)
« Last Edit: April 15, 2008, 12:33:15 PM by MMR »
Logged

Jyujinkai

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 352
    • View Profile
    • Jyujinkai's WME Development Blog
Re: A little trouble with Game.PlayMusic
« Reply #2 on: April 15, 2008, 12:48:11 PM »

you shouldn't compress png files? Are there any other files that should be skipped in the compression process like this?
« Last Edit: April 15, 2008, 12:52:45 PM by Jyujinkai »
Logged
<Antoine de Saint-Exupéry> In any thing at all, perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away...
<Carl Sagan> If you want to make a apple pie from scratch. You must first... invent the universe

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: A little trouble with Game.PlayMusic
« Reply #3 on: April 15, 2008, 12:58:46 PM »

Well, png files are already compressed so there is no need to try to compress them again. The same applies to other files like jpg, ogg vorbis, ogg theora etc
Logged
fl*p

Javi-Wan Kenobi

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 34
    • View Profile
Re: A little trouble with Game.PlayMusic
« Reply #4 on: April 15, 2008, 02:09:07 PM »

I think the size of music files doesn't matter, OGG files are the best for WME (IMHO).

You shouldn't compress music files inside the package that contain the ogg files (in ProjectManager go to menu Project->Project settings->Filters tab), you could see there a text field named 'do not compress'. You should have a text like this "*.wav;*.ogg;*.png" (without quotes). Try to see if that's your problem.

 ;)
I did that, it works fine know.
Thanks a lot.
Logged
 

Page created in 0.014 seconds with 19 queries.