Displaying 1 result from an estimated 1 matches for "snouto2".
Did you mean:
snouto
2007 Feb 13
0
Hello guys Please help
...rowband mode*/
state = speex_encoder_init(&speex_nb_mode);
/*Set the quality to 8 (15 kbps)*/
tmp=8;
speex_encoder_ctl(state, SPEEX_SET_QUALITY, &tmp);
//inFile = argv[1];
inFile = new char[10];
inFile = "snouto.wav";
fin = fopen(inFile, "r");
fout = fopen("snouto2.wav","w");
/*Initialization of the structure that holds the bits*/
speex_bits_init(&bits);
while (1)
{
/*Read a 16 bits/sample audio frame*/
fread(in, sizeof(short), FRAME_SIZE, fin);
if (feof(fin))
break;
if(ferror(fin))
{
std::cout << "There was an error s...