Chaosforge Forum

  • April 14, 2021, 23:37
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Sound API discussion and requests  (Read 2647 times)

Malek Deneith

  • Grand Inquisitor Emeritus
  • Grand Inquisitor
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1256
  • Lost Seraph
    • View Profile
Sound API discussion and requests
« on: June 09, 2011, 16:33 »

Okay short version - the God Hand stated that DoomRL 0.9.9.4, when it starts to get coded will see a rewrite of sound API... again. Since it'd be silly to have him rewrite said API only to find that he needs to do it again a version or two later to include something else I proposed to make a topic to discuss what works and what doesn't with the sound/music systems and what do we want to see in new API if anything.

So here is the thread... two or three weeks later than it should (Ugh). Current stated goals for the new API are to allow for:

1) random sounds and music
2) pan and volume control
3) positional control (and maybe an OpenAL implementation for true surround sound)

If there is something you want to see changed or improved regarding to sounds and musics write so while there is still time.

my personal ideas:
- Ability to mix and match between random music and pre-set music (so I could for example have the same music for special levels always, but music on regular levels would be randomized)
- Ability to have several sound to be played in order from one bind if at all possible (i.e. if I have reload sound in three pieces currently I'd have to find a way to merge it in one file - what I'd want to see is a way to bind them all to <weapon>.reload and have them played in order)
Logged
Inquisition - saving your soul, one bolter shell at a time.
Spoiler: "Hackmaster Kills" (click to show/hide)

ParaSait

  • Baffen :P
  • Elder
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1229
  • Happy Little Boozer
    • View Profile
    • MPSF
Re: Sound API discussion and requests
« Reply #1 on: June 09, 2011, 16:35 »

DoomRL with sound panning and surround sound. *fap fap fap*
DO IT! :D
Logged
[18|7|3|0|0|0] [MED:13/43] [SPE:36/67] [ASM:11/40]

Check out my epic youtube channel!
Currently playing The Bard's Tale and System Shock 2 (coop with GrAV1t)!

thelaptop

  • Chaos Fanatic!
  • Grand Inquisitor
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 2501
  • Grumpy Admin
    • View Profile
Re: Sound API discussion and requests
« Reply #2 on: June 09, 2011, 16:55 »

DoomRL with sound panning and surround sound. *fap fap fap*
DO IT! :D
Oh god... please don't do that in the forums...

I would suggest a sound/music sub-menu to be accessible during gameplay for adjustments as opposed to having more and more keybindings.  This isn't quite related to the sound API, but is close enough.

I will think more and generate more ideas soon enough -- it's hard to think straight when I just woke up.
Logged
I compute, therefore I am.

Hell Baron 1st Lieutenant (0.9.9.7)
[20/12/8/0/0/0]

Shoop da Whoop

  • First Sergeant
  • *
  • Offline Offline
  • Posts: 126
  • Personal Text
    • View Profile
Re: Sound API discussion and requests
« Reply #3 on: June 10, 2011, 01:39 »

Quote
(so I could for example have the same music for special levels always, but music on regular levels would be randomized)
This will be fine! ...but I'll miss the Descent Into Cerberon (one of Quake II themes) on level 14 - because it reminds of nextcoming Hellgate.

And we need more of new sounds: better shotties sounds - http://forum.chaosforge.org/index.php/topic,4302.0.html ;
minibosses sounds - http://forum.chaosforge.org/index.php/topic,4304.0.html .
Logged
Code: [Select]
He had posted some posts.
He waited enough for new version of DoomRL.
He played classic Doom but not passed. He also played rogulikes. And once he found the intersection of these sets...

AStranger

  • First Lieutenant
  • *
  • Offline Offline
  • Posts: 233
  • Cyberdemon Blade
    • View Profile
Re: Sound API discussion and requests
« Reply #4 on: June 10, 2011, 01:49 »

What about binding sounds to messages? So when 'You feel there is something really valuable here!' a user defined noise happens. Kinda like colored messages for your ears.
Logged
[24|23|20|18|13] v.0.9.9.3
[17|10|8|5|2] v.0.9.9.2
[15|11|10|6|3] v.0.9.9.1
[18|17|14|10|6] v.0.9.9

s0ulman

  • Backer
  • Lance Corporal
  • *
  • *
  • Offline Offline
  • Posts: 25
  • Lost Soul
    • View Profile
Re: Sound API discussion and requests
« Reply #5 on: June 10, 2011, 09:25 »

We should also probably have a sound to come with "Your weapon is empty!" message. To prevent annoying oh-crap-that-was-me-moving-not-the-crosshair fails.
Logged
[24/21/11/2/0]
Arch-Vile Major

Deathwind

  • Colonel
  • *
  • Offline Offline
  • Posts: 505
  • HMP Angel of Patience 0.9.9.4
    • View Profile
Re: Sound API discussion and requests
« Reply #6 on: June 10, 2011, 15:31 »

That's why they added the option to make the game wait for you to hit enter when you try to fire an empty gun.
Logged
v.997 [16/5/2/0/0]

Thomas

  • DoomRL Wiki and Testing Ops
  • Elder Chaos Guard
  • Major General
  • *
  • *
  • Offline Offline
  • Posts: 881
  • How's it going?
    • View Profile
Re: Sound API discussion and requests
« Reply #7 on: June 12, 2011, 10:44 »

Having the music played by the game dependant on the difficulty the player chooses is something I've been thinking about recently.
Logged
Arch-Vile Chaos Major Thomas
[26/26/26/25/9/1]
Medals: 35/43 Specials: 69/67 Assemblies: 36/40

yaflhdztioxo

  • Programmer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 298
  • Lost Sole
    • View Profile
Re: Sound API discussion and requests
« Reply #8 on: June 12, 2011, 17:53 »

Currently we assign strings that get resolved.  It would be neat if we could also create functions and treat the sounds.lua file as a modding extension.  That way if you wanted multiple death sounds you could create a procedure similar to the Being.OnDie hook that returned a random string or even play the string itself.  Same with music selection; that would also allow difficulty based music since the DIFFICULTY var would be available.

Also, I would like the ability to alter pitch/speed when playing.
Logged

Sambojin

  • First Lieutenant
  • *
  • Offline Offline
  • Posts: 223
  • Lost Soul
    • View Profile
Re: Sound API discussion and requests
« Reply #9 on: June 14, 2011, 11:09 »

Having it as a modding extension would be great. It might also allow music changes (as well as tempo/volume/pitch) depending on powerup state of the player. Speeding up the music a little and making it that bit louder whilst in berserk mode would be my favourite use of this.  It would also allow some quite nice "pseudo-environmental effects" (such as major sine-wave panning of music to represent madness/confusion/disorientation). Lava/acid tempo changes and barrel explosion "music-woosh" shouldn't be too hard to achieve either. Adding it to level messages could make for some pretty funny sounds, almost Duke Nukem style humour for level beginnings.

The sound system and the fact it is a key part of gameplay in DoomRL is one of the things that has set it apart from many rogue-likes for a long time. To open this up to level events, modding and other such uses would be a great addition. I hope it can be achieved by 0.9.9.4.
Logged

thelaptop

  • Chaos Fanatic!
  • Grand Inquisitor
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 2501
  • Grumpy Admin
    • View Profile
Re: Sound API discussion and requests
« Reply #10 on: September 29, 2011, 22:15 »

Well, 0.9.9.4 has been released and there's no major change.  I'm not sure what the full plan is for 0.9.9.5, so I'm going to unsticky this for now.

Keep the ideas coming in though!
Logged
I compute, therefore I am.

Hell Baron 1st Lieutenant (0.9.9.7)
[20/12/8/0/0/0]
Pages: [1]