Xonotic Forums
Gapless music looping/playback - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10)
+--- Forum: Xonotic - Music and Sound Development (https://forums.xonotic.org/forumdisplay.php?fid=33)
+--- Thread: Gapless music looping/playback (/showthread.php?tid=5015)



Gapless music looping/playback - Archer - 07-17-2014

Currently music looping in Xonotic is not gapless, discouraging the usage of perfectly looping songs. It always has this short break/stop/stutter before the music continues from the beginning again after playback.

This can even be noticed with songs that aren't really meant to perfectly loop (music in Afterslime is a good example), it's just a little bit disturbing, sounds cheap too.

All in all not a very big issue with tremendous priority, but would be a nice thing to have at some point Smile


RE: Gapless music looping/playback - unfa - 07-31-2014

Strange. I thought it was perfect! I'm on Linux.
What OS are you running Xonotic on?
Maybe it's something OS-dependant.


RE: Gapless music looping/playback - Archer - 07-31-2014

(07-31-2014, 06:58 PM)unfa Wrote: Strange. I thought it was perfect! I'm on Linux.
What OS are you running Xonotic on?
Maybe it's something OS-dependant.

Windows 7 Ultimate 64 bit

I'll record what I mean so it can be judged more accurately.


RE: Gapless music looping/playback - unfa - 08-01-2014

(07-31-2014, 10:47 PM)Archer Wrote: I'll record what I mean so it can be judged more accurately.

I should do the same. What map will you use? The best would be to record the same track and compare.


RE: Gapless music looping/playback - Archer - 08-01-2014

(08-01-2014, 05:34 PM)unfa Wrote:
(07-31-2014, 10:47 PM)Archer Wrote: I'll record what I mean so it can be judged more accurately.

I should do the same. What map will you use? The best would be to record the same track and compare.

Afterslime Tongue


RE: Gapless music looping/playback - unfa - 08-05-2014

Hmm. I've tried recording Afterslime, but the track isn't looped (also I think this music could really use some variation - mostly it's just on loop over and over).

Anyway - by comparing recorded in-game and source music file I was able to measure the gap - it's about 1 ms (~25 samples):
[attachment=1308]
I really think the game plays it back gaplessly, I had some trouble because I use 48 kHz mixing in Xonotic, so the recorded music was resampled and didn't match perfectly with the original after resampling it again (I wasnt able to acheive perfect cancellation with one signal having inverted polarity).

If you send me your in-game recorded music, I can measure the gap for you.


RE: Gapless music looping/playback - Archer - 08-05-2014

(08-05-2014, 12:35 PM)unfa Wrote: Hmm. I've tried recording Afterslime, but the track isn't looped (also I think this music could really use some variation - mostly it's just on loop over and over).

Anyway - by comparing recorded in-game and source music file I was able to measure the gap - it's about 1 ms (~25 samples):

I really think the game plays it back gaplessly, I had some trouble because I use 48 kHz mixing in Xonotic, so the recorded music was resampled and didn't match perfectly with the original after resampling it again (I wasnt able to acheive perfect cancellation with one signal having inverted polarity).

If you send me your in-game recorded music, I can measure the gap for you.
I can measure it myself too Tongue

But I don't have time to check it out yet, will be very busy until wednesday next week, after that I can test this and also work on the trailer.


RE: Gapless music looping/playback - unfa - 08-05-2014

Okay Smile See you around later!