Dynamic Volume control of .ogg files

Dynamic Volume control of .ogg files

Requests for features in the spring code.

Moderator: Moderators

Post Reply
Sheekel
Posts: 1391
Joined: 19 Apr 2005, 19:23

Dynamic Volume control of .ogg files

Post by Sheekel »

Hi, i understand you can play .ogg sound files with

Spring.PlaySoundStream

but you can only set the volume level. is there a way one could change the volume of the .ogg currently being played without it being interrupted?
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Re: Dynamic Volume control of .ogg files

Post by Snipawolf »

cough doppler effect cough
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: Dynamic Volume control of .ogg files

Post by Kloot »

Spring.SetSoundStreamVolume(v) (SVN)
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

Re: Dynamic Volume control of .ogg files

Post by Hoi »

could you implent mp3 support? almost everything is mp3, and the switch to ogg will go slow...
Sheekel
Posts: 1391
Joined: 19 Apr 2005, 19:23

Re: Dynamic Volume control of .ogg files

Post by Sheekel »

Kloot wrote:Spring.SetSoundStreamVolume(v) (SVN)
horay! I wanted this so I could ease the transfer between tracks of the OTA music player. Its really annoying when it changes suddenly on you...but with this it can fade out and back in slowly
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Dynamic Volume control of .ogg files

Post by Forboding Angel »

Hoi wrote:could you implent mp3 support? almost everything is mp3, and the switch to ogg will go slow...

MP3 Is a commercial format whereas OGG is open sourced. Search google for an mp3 > ogg batch converter. There are a million progs that do it and it doesn't take hardly any time to do.
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

Re: Dynamic Volume control of .ogg files

Post by Hoi »

noobs dont know that
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Dynamic Volume control of .ogg files

Post by Satirik »

noobs don't make mods nor scripts !
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

Re: Dynamic Volume control of .ogg files

Post by Hoi »

I was talking about a music widget :?
ZellSF
Posts: 1187
Joined: 08 Jul 2006, 19:07

Re: Dynamic Volume control of .ogg files

Post by ZellSF »

then noobs will have to learn that.
Ashnal
Posts: 104
Joined: 24 Jun 2008, 00:57

Re: Dynamic Volume control of .ogg files

Post by Ashnal »

Most noobs will be happy with whatever music is included in the mod. If not, then they can just disable music completely and use their favorite media player with global hotkeys to play music. The only noobs that will bother with a music widget are the ones with the time and intelligence to learn its nuances anyways.

I do think volume control would be nice for mod usage though.
Post Reply

Return to “Feature Requests”