StOutVol

Audio output, stereo has inbuild volume control
Author: Johannes Taelman edit by Remco van der Most
License: BSD
Github: sss/audio/StOutVol.axo

Inlets

frac32buffer Left channel

frac32buffer Right channel

Outlets

None

Parameters

frac32.u.map volume

Displays

frac32.vu vuLeft

frac32.vu vuRight

Control Rate
int j;
for (j = 0; j < BUFSIZE; j++) {
  AudioOutputLeft[j] =
      __SSAT(___SMMUL(inlet_left[j] << 3, param_volume << 2), 28);
  AudioOutputRight[j] =
      __SSAT(___SMMUL(inlet_right[j] << 3, param_volume << 2), 28);
}
disp_vuLeft = AudioOutputLeft[0];
disp_vuRight = AudioOutputRight[0];

Privacy

© 2024 Zrna Research