spandsp  3.0.0
data_modems_tests.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <assert.h>
#include <sndfile.h>
#include "spandsp.h"
#include "spandsp-sim.h"

Classes

struct  command_response_s
 

Macros

#define INPUT_FILE_NAME   "../test-data/itu/fax/itu1.tif"
 
#define OUTPUT_FILE_NAME   "t31.tif"
 
#define OUTPUT_WAVE_FILE_NAME   "data_modems.wav"
 
#define SAMPLES_PER_CHUNK   160
 

Functions

int main (int argc, char *argv[])
 

Variables

char * decode_test_file = NULL
 
int countdown = 0
 
int command_response_test_step = -1
 
char response_buf [1000]
 
int response_buf_ptr = 0
 
bool answered = false
 
bool done = false
 
bool sequence_terminated = false
 
data_modems_state_tdata_modems_state [2]