search for: ahmed2

Displaying 1 result from an estimated 1 matches for "ahmed2".

Did you mean: ahmed
2007 Feb 13
1
Hello Guys
...rrowband 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 = "ahmed.wav"; fin = fopen(inFile, "r"); fout = fopen("ahmed2.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; /*Copy the 16 bits values to float so Speex can work on them*/ f...