2020-05-02 01:54:58 -04:00
|
|
|
//======================================================================
|
|
|
|
// audio.h
|
|
|
|
//======================================================================
|
|
|
|
|
|
|
|
#ifndef __iop_audio_h__
|
|
|
|
#define __iop_audio_h__
|
|
|
|
|
2020-05-03 01:37:21 -04:00
|
|
|
#include "config.h"
|
|
|
|
|
2020-05-02 01:54:58 -04:00
|
|
|
enum RxInput {
|
|
|
|
RX_RIG_IN = 0,
|
2020-05-03 02:27:54 -04:00
|
|
|
RX_USB_IN = 1,
|
2020-05-02 01:54:58 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
enum RxOutput {
|
|
|
|
RX_SPEAKER_OUT = 0,
|
2020-05-03 02:27:54 -04:00
|
|
|
RX_LINE_OUT = 1,
|
|
|
|
RX_USB_OUT = 2,
|
2020-05-02 01:54:58 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
enum TxInput {
|
|
|
|
TX_MIC_IN = -1,
|
|
|
|
TX_LINE_IN = 0,
|
2020-05-03 02:27:54 -04:00
|
|
|
TX_USB_IN = 1,
|
2020-05-02 01:54:58 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
enum TxOutput {
|
|
|
|
TX_RIG_OUT = 0,
|
2020-05-03 02:27:54 -04:00
|
|
|
TX_USB_OUT = 1,
|
2020-05-02 01:54:58 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
void audioInit();
|
|
|
|
void audioSelectTxInput(TxInput);
|
|
|
|
void audioTransmit();
|
|
|
|
void audioReceive();
|
2020-05-03 01:37:21 -04:00
|
|
|
void audioCalibrate(IOPConfig *, char, char, char, float, bool);
|
2020-05-02 01:54:58 -04:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//======================================================================
|
|
|
|
// EOF
|
|
|
|
//======================================================================
|