📄 libvoice.h
字号:
/* voifax general voice functions library * Copyright (C) 2004 Simone Freddio & Andrea Emanuelli * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */#include "modemutil.h"/* queste define sono per la funzione libvoice_setdevice */#define SD_NODEVICE 1#define SD_DIALUPLINE 2#define SD_INTERNAL_MICROPHONE 3#define EXTERNAL_MICROPHONE 4#define INTERNAL_SPEAKER 5#define LOCAL_HANDSET 6#define EXTERNAL_SPEAKER 7#define DIALUP_WITH_INT_SPEAKER 8#define DIALUP_WITH_EXT_SPEAKER 9#define DIALUP_WITH_INTERNAL_MIC_AND_SPEAKER 10#define DIALUP_WITH_EXTERNAL_MIC_AND_SPEAKER 11#define DIALUP_WITH_LOCAL_HANDSET 12int libvoice_sendcmd(char *cmdname);int libvoice_sendcmdwithargs(char *cmdname, int argc, char **argv);int libvoice_init(char *device);void libvoice_processevent(void);void libvoice_answer(void);void libvoice_hangup(void);void libvoice_selectdialupline(void);void libvoice_reset(void);int libvoice_beep(int freq, int length); /* length e' in millisecondi */int libvoice_setdevice(int device);int libvoice_play(char *filename);int libvoice_record(char *filename);int libvoice_stop(void);int libvoice_dial(char *number);char *libvoice_getty(void);void libvoice_shutdown(void); /* chiude la libreria */int libvoice_wait(int seconds); int libvoice_quote(char *cmd, char *rsp);int libvoice_senddtmf(char digit, int length);/* TODO char *libvoice_getmodem(); * solo per compatibilita' con vgetty *//*void libvoice_autostop(int activate); * accetta in ingresso true o false *//*void libvoice_play(char *filename, int dtmf); * da verificare sulla documentazione, non so a che serve *//*void libvoice_getfax(char *filename);void libvoice_sendfax(char *filename);*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -