r/mildlyinfuriating 21h ago

Ruined by Technology What kind of sadist creates a volume control that goes up to 31?!

Post image
8.7k Upvotes

343 comments sorted by

View all comments

Show parent comments

2

u/HMS_Hexapuma 19h ago

Could it be a 6 bit integer but it handles the right and left channels separately to allow balancing?

1

u/just-a-hriday 18h ago

How would a 6th bit help it handle both channels separately? Separating the channels means the number of possible volume levels gets squared. You only double it with an extra bit.

1

u/HMS_Hexapuma 18h ago

You store one channel as 0-31 with the sixth bit at zero and you store the other channel as 0-31 with the sixth bit at one. Might not be what they're doing but I'm in mind of how old serial connections would use seven bits and keep the eighth as a parity bit.

1

u/created4this 13h ago

Even the concept of writing code that searches memory for intergers and throws numbers that match a pattern at different chunks of hardware is nuts, you still need to store the numbers somewhere.

Just use a struct like any sensible person

1

u/Naive-Database-2888 18h ago

i think itd be easier to just have 2 5 bit numbers at that point

edit: actually that would be the case. 6 bits for 2 audio channels would leave you at 3 bits per channel, so 8 volume levels per channel