Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Looping sound  (Read 4746 times)

0 Members and 1 Guest are viewing this topic.
Looping sound
« on: October 20, 2012, 02:15:02 am »
  • It's the grineer
  • *
  • Reputation: +17/-2
  • Offline Offline
  • Gender: Male
  • Posts: 1083
So, I need to loop a sound for the game I'm doing. Mostly, because there's a part at the beginning that I want not to be repeated, but I don't know how. Could someone tell me how?

EDIT: I'm using Wavosaur, Goldwave and Audacity.
Logged
Re: Looping sound
« Reply #1 on: October 20, 2012, 03:27:01 am »
  • It's the grineer
  • *
  • Reputation: +17/-2
  • Offline Offline
  • Gender: Male
  • Posts: 1083
I kind of was able to loop it, but when I open it in GM8 it doesn't loop. Here is the link for anyone who'd like to see it. Is the "In the Fields" theme from Spirit Tracks:

http://soundcloud.com/user918608133/in-the-fields-looped
Logged

Arcaith

Landscape Police
Re: Looping sound
« Reply #2 on: October 21, 2012, 10:13:22 am »
  • *ding*
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 60
The best way to loop a track is to have two files, the start up to the point where the loop starts, and then segue straight into a different file of the part that loops.
Logged
*MooN*
Re: Looping sound
« Reply #3 on: October 21, 2012, 12:07:13 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3374
The best way to loop a track is to have two files, the start up to the point where the loop starts, and then segue straight into a different file of the part that loops.
Yep, this. If you're using GM, I'd suggest looking at an extension or DLL that can play mp3/ogg from a file. Usually these have the ability to read the current position of the song, so when it gets to the end of the 'intro' file it starts playing the main one in a loop mode (which is also usually provided).
Logged
Quote from: Jason
Your community is a bunch of stuck up turds.
Re: Looping sound
« Reply #4 on: October 21, 2012, 12:48:46 pm »
  • It's the grineer
  • *
  • Reputation: +17/-2
  • Offline Offline
  • Gender: Male
  • Posts: 1083
Right now, I'm using Wavosaur, because is the only one that GM accepts as an external tool. What you're telling me to do is to have the file with the song, and then another file in which is the part I want to loop? How do I do that? I mean, I know to copy a part of the song, but I don't know how to add another song at the end, and all that.
Logged
Re: Looping sound
« Reply #5 on: October 22, 2012, 01:48:24 am »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3374
Well, what you do is load up the first part in your game, start playing that, then have some code that checks if the end of the first song has been reached yet. If it has, start playing the looped part. And I'm not talking about external tools. You want to use a DLL or extension to have your game load the music files when someone plays it. It'll also decrease loading times and filesize of the executable, never put mp3/ogg files inside the game :P
Logged
Quote from: Jason
Your community is a bunch of stuck up turds.
Re: Looping sound
« Reply #6 on: October 22, 2012, 11:35:17 am »
  • It's the grineer
  • *
  • Reputation: +17/-2
  • Offline Offline
  • Gender: Male
  • Posts: 1083
Oh, I see. Thanks for your help  :D!
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.222 seconds with 49 queries.

anything