what i have done is read some data from mic and encode it and write it to a file. then read the file again decode and write it to another file and read that file again and playback the sound.
Code:
#include <unistd.h> #include <fcntl.h>
#include <unistd.h> #include <fcntl.h>
/* put sample parameters */ c->bit_rate = 64000; [B]//is this the bit rate and sample_rate of input or output?[/B] c->sample_rate = 44100; c->channels = 2; /* open it */ if (avcodec_open(c, codec) < 0) { fprintf(stderr, "could not open codec\n"); exit(1); }
public class Car{ public static String make; public static String model; public static int year; public static int price; //Car(); constructor with parameters public Car(String m, String d, int y, int p) { make = m; ......
System.out.println(carShop[ i ]);
#include <string> #include <iostream.h> // make a guess at what a QCString is typedef std::string QCString; class Encode { public: int v; Encode(
Leave a comment: