OpenParsec / openparsec

GNU General Public License v2.0
51 stars 8 forks source link

Audio system: background music AND random Sfx #88

Open uberlinuxguy opened 2 years ago

uberlinuxguy commented 2 years ago

currently, the background player only plays either a random sfx or music. Music should always be playing if enabled. Random sfx should play under music, not instead of.

uberlinuxguy commented 2 years ago

Taking a quick-ish look at the audio code,

it initializes 32 mixer channels. It's not clear it uses all of them.

The random "game sfx" shouldn't play as music.

Thought:

Channel list:

By the look of it 8 channels should suffice. Would need a way to tag each sample with what channel to play on. Not sure if this is being done at the moment, needs more digging

The audio code is also a hot mess of unused stuff. There is an open ticket for cleaning this up somewhere.

CrazySpence commented 2 years ago

I don't think i've ever heard it play a SFX not since before 0.2 anyways, heres a couple janky short transition songs that are a few seconds long though

uberlinuxguy commented 2 years ago

the short stuff is what I think is the game sfx...