Page 1 of 3
Musics!
Posted: 19 Jan 2008, 06:01
by LOrDo
I know this is teh uber MTR, but I want to know if we are any closer at all to getting music in spring. I dont mean like a soundtrack, I mean a proper music player in spring. I little birdie told me that spring's LUA can play ogg's in the latest version, so thats why Im posting this in theLUA scripts forum, I have no idea if its true or not. So is anyone working on this?
Re: Musics!
Posted: 19 Jan 2008, 12:59
by Kloot
From the changelog:
- Added PlaySoundStream and StopSoundStream for OggVorbis audio.
(They live in the LuaUI Spring table, the format for Play is
PlaySoundStream("file.ogg" [, volume, x, y, z]) -> nil).
Re: Musics!
Posted: 20 Jan 2008, 06:37
by LOrDo
So it can be done. Now I wish I knew LUA

Re: Musics!
Posted: 20 Jan 2008, 07:50
by lurker
Does an ogg vorbis soundstream update volume and balance based on its position?
Re: Musics!
Posted: 20 Jan 2008, 23:59
by Kloot
No, the position parameters are always ignored (their
presence is a leftover from my original intent to make
handling of .wav's and .ogg's transparent).
Re: Musics!
Posted: 21 Jan 2008, 19:16
by lurker
Kloot wrote:No, the position parameters are always ignored (their
presence is a leftover from my original intent to make
handling of .wav's and .ogg's transparent).
Wait. You mean it's not played in worldspace at all? So any unit sounds still have to be massive .wav files?
Re: Musics!
Posted: 21 Jan 2008, 22:08
by KDR_11k
You don't want more than one OGG running at a time anyway, decoding takes some CPU.
Re: Musics!
Posted: 26 Jan 2008, 05:24
by LOrDo
But my only question is...
WHO IS UP FOR THE EPIC CHALLENGE OF PUTTING MUSIC IN SPRING?!!!!!!
Creator of dynamic music widget gets free pie for life.
Re: Musics!
Posted: 26 Jan 2008, 05:33
by clumsy_culhane
there is already one, i cbf finding it. but there is one.. do a search

Re: Musics!
Posted: 26 Jan 2008, 19:30
by Auswaschbar
LOrDo wrote:
WHO IS UP FOR THE EPIC CHALLENGE OF PUTTING MUSIC IN SPRING?!!!!!!
Auswaschbar's guide to listen to music in spring:
1. Start audioplayer of choice
2. Generate playlist and start music
3. Play spring while listen to music
May someone enlighten me what is the advantage of playing music with a widget?
Re: Musics!
Posted: 26 Jan 2008, 19:33
by ZellSF
Auswaschbar wrote:LOrDo wrote:
WHO IS UP FOR THE EPIC CHALLENGE OF PUTTING MUSIC IN SPRING?!!!!!!
Auswaschbar's guide to listen to music in spring:
1. Start audioplayer of choice
2. Generate playlist and start music
3. Play spring while listen to music
May someone enlighten me what is the advantage of playing music with a widget?
Not having to do additional steps each time you start (and close) Spring?
Not having to bother with a seperate volume control?
Not having to manually change tracks for dynamic music?
Not having to alt-tab to change settings you don't have hotkeys for?
I could think of more, really.
Re: Musics!
Posted: 27 Jan 2008, 06:16
by LOrDo
3 advantages
1: DYNAMIC MUSIC
2: DYNAMIC MUSIC
3: DYNAMIC MUSIC
And for seriousness, you forgot about less ram use. And a proper music player in spring would spawn a soundtrack for spring, and world domination would follow.
Re: Musics!
Posted: 27 Jan 2008, 12:48
by REVENGE
LOrDo wrote:Creator of dynamic music widget gets free pie for life.
Dude, are you kidding me? I mean, promises for baked goods are notoriously untrustworthy these days.

Re: Musics!
Posted: 29 Jan 2008, 00:18
by LOrDo
Then you can get your pie uncooked

Re: Musics!
Posted: 29 Jan 2008, 04:28
by Beherith
Other solution:
Most keyboards nowadays come with play/pause, volume and next/prev track buttons. These are easily mapped to any music player. Hell, even good old foobar2000 recognizes them. I use the Volume widget for spring volume, and I have volume keys on the kb for global system volume.
I have tried AFs dynamic music ai, but have found the track changes to be way too abrupt and frequent. Also, its volume drowning out all other spring sounds makes it fail
My only gripe with music in spring is: Can someone PLEASE fix the
cant reach destination sound bug, or tell me a way to permanently delete from spring? It was one of those things that drived me mad in OTA. Now hearing it on repeat forever because an
allys unit is stuck drives me off the f*cking walls.
Re: Musics!
Posted: 29 Jan 2008, 08:29
by Forboding Angel
mod problem, not engine problem.
Re: Musics!
Posted: 29 Jan 2008, 10:49
by Kixxe
Oh the dynamic Music is working for 0.76 now?
Link please.
Re: Musics!
Posted: 29 Jan 2008, 12:43
by AF
Re: Musics!
Posted: 29 Jan 2008, 20:17
by ZellSF
Beherith wrote:Other solution:
Most keyboards nowadays come with play/pause, volume and next/prev track buttons. These are easily mapped to any music player. Hell, even good old foobar2000 recognizes them. I use the Volume widget for spring volume, and I have volume keys on the kb for global system volume.
I have tried AFs dynamic music ai, but have found the track changes to be way too abrupt and frequent. Also, its volume drowning out all other spring sounds makes it fail
My only gripe with music in spring is: Can someone PLEASE fix the
cant reach destination sound bug, or tell me a way to permanently delete from spring? It was one of those things that drived me mad in OTA. Now hearing it on repeat forever because an
allys unit is stuck drives me off the f*cking walls.
hotkey solutions won't work you just can't easily hotkey every action, especially considering lots of key combinations are used by Spring, and considering Spring's a very mouse based game, there's lots of times when you don't even have your hands at they keyboard. That and it would be using a seperate volume control, which will be an annoyance, and would have to be started up first and closed after. That and it's not dynamic.
Sure you can do it if you want to, but it's not a solution.
I'll gladly go back to manually managing my metal makers over dealing with those inconveniences each game anyway.
Re: Musics!
Posted: 29 Jan 2008, 21:12
by Beherith
ZellSF wrote:
hotkey solutions won't work you just can't easily hotkey every action, especially considering lots of key combinations are used by Spring, and considering Spring's a very mouse based game, there's lots of times when you don't even have your hands at they keyboard.
I think you misunderstood me. I have a music player app running in the background, and my keyboard has media keys that spring doesnt use. So i can control the media player while playing spring.
I dunno what kind of mouse you have, but mine only requires use of my right hand, so I always have my left hand on the keyboard.