HelenOS sources
vol_max 312 uspace/lib/trackmod/trackmod.c modplay->chan[chan].volume = param % (vol_max + 1);
vol_max 382 uspace/lib/trackmod/trackmod.c if (nv > vol_max)
vol_max 383 uspace/lib/trackmod/trackmod.c nv = vol_max;
vol_max 513 uspace/lib/trackmod/trackmod.c if (cell->volume >= 0x10 && cell->volume <= 0x10 + vol_max)
vol_max 715 uspace/lib/trackmod/trackmod.c if (nv > vol_max)
vol_max 716 uspace/lib/trackmod/trackmod.c nv = vol_max;
vol_max 927 uspace/lib/trackmod/trackmod.c sl = (int)chan->lsmp * amp_factor * chan->volume / vol_max;
vol_max 929 uspace/lib/trackmod/trackmod.c amp_factor * chan->volume / vol_max;
HelenOS homepage, sources at GitHub