#ifndef VOICETRANS_ENCODE_H
#define VOICETRANS_ENCODE_H

#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <ogg/ogg.h>
#include <stdio.h>

#include <speex/speex.h>
#include <speex/speex_header.h>
#include <speex/speex_stereo.h>
//#include <speex/speex_bits.h>
//#include <speex/speex_callbacks.h>


#include "wav_io.h"

#include  "misc.h"

#include <ogg/ogg.h>


#include <unistd.h>
#include <getopt.h>


#define MAX_FRAME_SIZE 2000
#define MAX_FRAME_BYTES 2000

/*
namespace iwear{
namespace voicetransmission{*/

void comment_init(char **comments, int* length, char *vendor_string);
void comment_add(char **comments, int* length, char *tag, char *val);


/*Write an Ogg page to a file pointer*/
int oe_write_page(ogg_page *page, FILE *fp);

/* Convert input audio bits, endians and channels */
static int read_samples(FILE *fin,int frame_size, int bits, int channels, int lsb, short * input, char *buff, int *size);

void version();

void version_short();

void usage();


int speexEnc(int argc, char **argv);

#endif

/*
} // namespace voicetransmission
} // namespace iwear
*/
