---
name: "NJB_Adjust_Sound"
section: "3"
platform: "linux"
package: "libnjb1-doc"
version: "1.1-2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/NJB_Adjust_Sound"
---

# NJB\_Adjust\_Sound(3)

Adjust sound settings on the NJB

## NAME

NJB\_Adjust\_Sound - Adjust sound settings on the NJB

## LIBRARY

libnjb

## SYNOPSIS

\#include \<libnjb.h\>

extern int njb\_error

int NJB\_Adjust\_Sound(njb\_t  **\*njb**, u\_int8\_t **effect**, u\_int16\_t **value);**

## DESCRIPTION

This function modified a sound parameter in the NJB, it is used for both volume and EAX settings. The previous values can be accessed using NJB\_Get\_EAX(). This struct also provide maximum  and minimum values for some of the values, as well as the offset  value for different EAX effects.

The following values are valid  **effect** numbers:

- NJB\_SOUND\_SET\_VOLUME

  Sets the  **volume,** valid values 1-99.

- NJB\_SOUND\_SET\_BASS

  Sets the  **bass** value of the equalizer. Valid value range retrieved from the EAX structure.

- NJB\_SOUND\_SET\_TREBLE

  Sets the  **treble** value of the equalizer. Valid value range retrieved from the EAX structure.

- NJB\_SOUND\_SET\_MUTING

  Set the muting status on the Jukebox. 1 = mute device,  0 = unmute device.

- NJB\_SOUND\_SET\_MIDRANGE

  Sets the  **midrange** value of the equalizer. Valid value range retrieved from the EAX structure.

- NJB\_SOUND\_SET\_MIDFREQ

  Sets the middle frequency for the midrange setting of the equalizer. Valid value range retrieved from the EAX structure.

- NJB\_SOUND\_SET\_EAX

  Sets the  **EAX** type. Valid value range retrieved from the EAX structure.

- NJB\_SOUND\_SET\_EAXAMT

  Sets the  **EAX** value (amount) for currently selected EAX type.  Valid value range retrieved from the EAX structure.

- NJB\_SOUND\_SET\_HEADPHONE

  Sets the headphone mode. Valid value range retrieved from the EAX structure.

- NJB\_SOUND\_SET\_REAR

  Sets the rear speaker mode. Valid value range retrieved from the EAX structure.

- NJB\_SOUND\_SET\_EQSTATUS

  Sets the equalizer status, 1 = equalizer active, 0 = equalizer deactivated.

## SEE ALSO

[NJB\_Get\_EAX(3)](/NJB_Get_EAX/3.md)
