sikthehedgehog / Echo

Mega Drive sound engine
zlib License
95 stars 15 forks source link

Per-channel linear volume set #16

Open BigEvilCorporation opened 7 years ago

BigEvilCorporation commented 7 years ago

SetVolume sets all channels linearly (0-255), but SetVolumeEx requires the format for each channel type.

It's rare that game code would care for each channel's individual formats, a SetVolumeLinear or something would make life easier.

sikthehedgehog commented 7 years ago

Maybe I really should just expose the look-up tables ._.

marcb0t commented 7 years ago

Well, I'm not sure what's being asked here.

Personally, I use different volume settings at many different times for many kinds of precise instrumentation effects per any given channel at any given moment.

sikthehedgehog commented 7 years ago

It's in reference to this command https://github.com/sikthehedgehog/Echo/blob/master/doc/api-asm.68k#L129

sikthehedgehog commented 6 years ago

OK took the internal tables used by Echo_SetVolume and made them global instead. Should help with it. Still not sure about whether make a dedicated subroutine that does it for you anyway or what.