Echo icon indicating copy to clipboard operation
Echo copied to clipboard

Per-channel linear volume set

Open BigEvilCorporation opened this issue 7 years ago • 4 comments

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.

BigEvilCorporation avatar Oct 06 '17 15:10 BigEvilCorporation

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

sikthehedgehog avatar Oct 06 '17 23:10 sikthehedgehog

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.

marcb0t avatar Oct 07 '17 06:10 marcb0t

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

sikthehedgehog avatar Oct 07 '17 18:10 sikthehedgehog

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.

sikthehedgehog avatar Oct 22 '17 10:10 sikthehedgehog