Skip to content

Loading songs outside of SuperTux Source #2217

Answered by Semphriss
AM7999 asked this question in Q&A
Discussion options

You must be logged in to vote

You can!

  1. Convert your music files to .ogg files (SuperTux only supports .ogg and .wav files, and .ogg files are usually preferable)
  2. Place your .ogg's somewhere in your userdata directory (the same folder that contains the "config" files, the "profiles" folder, the "addons" folder, etc). You can place in in a new folder called "music", or alongside your levels.
  3. Add a new file called yourmusicname.music alongside your .ogg and open it with any text editor, and put this in it:
(supertux-music
  (file "yourmusicfile.ogg")
)

(Adapt the file names as needed)
4. Optionally, you can add another line before the last line, like (loop-at 1.234) where 1.234 is the number of seconds the song shoul…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@AM7999
Comment options

Answer selected by AM7999
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants