long soundcmdmodedata

This command is used to get or set the following sound parameters. If a negative number is used as the input then the current setting is returned.

MODE OPERATION MEANING

0 LTATTEN Sets the left channel output

Attenuation. Attenuation is measured in -1.5Db increments, INPUT: (int) xxxx xxxx LLLL xxxx

Where: LLLL- Attenuation to set. xxxx- Reserved. RETURNS (int) xxxx xxxx LLLL xxxx

Where: LLLL - Left Attenuation.

1 RTATTEN Sets the right channel output

Attenuation. Attenuation is measured in -1.5Db increments. INPUT: (int) xxxx xxxx RRRR xxxx

Where: RRRR- Attenuation to set. xxxx- Reserved. RETURNS (int) xxxx xxxx RRRR xxxx

Where: RRRR - Right Attenuation.

2 LTGAIN Sets the left channel input gain.

Gain is measured in 1.5Db increments. INPUT: (int) xxxx xxxx LLLL xxxx Where: LLLL- Gain to set. xxxx- Reserved. RETURNS (int) xxxx xxxx LLLL xxxx Where: LLLL - Left Gain.

RTGAIN Sets the right channel input gain.

Gain is measured in 1.5Db increments. INPUT: (int) xxxx xxxx RRRR xxxx Where: RRRR- Gain to set. xxxx- Reserved. RETURNS (int) xxxx xxxx RRRR xxxx Where: RRRR - Right Gain.

ADDERIN

INPUT:

ADCINPUT

INPUT:

Set the 16 bit signed adder to receive it's input from the ADC, Matrix or both. The input to this function is a bitmap where:

RETURNS: (int)

76543210 000000MA

1- (M) Matrix xxxx xxxx xxxx xxMA

Set the input to the ADC. The input can either be the left and right channel of the PSG or the left and right channel of the microphone. The input is a bit map where if the bit is (0) it is a microphone input, or if the bit is a (1) it is a PSG input.

RETURNS (int)

0- Right channel input.

1- Left channel input, xxxx xxxx xxxx xxLR

SETPRESCALE Used for compatability. This prescale value is used when the DEVCONNECT0 internal prescale value is set to zero. INPUT: (int) 0- Invalid

1- Divide by 640

2- Divide by 320

3-Divide by 160 RETURNS (int) Current divisor value.

0 0

Post a comment

  • Receive news updates via email from this site