C# G729用法
bin/debug包含 G729.dll
[DllImport("g729.dll")] public static extern void va_g729a_init_encoder(); [DllImport("g729.dll")] public static extern void va_g729a_init_decoder(); [DllImport("g729.dll")] public static extern void va_g729a_encoder(byte[] inputByte, byte[] outputByte); [DllImport("g729.dll")] public static extern void va_g729a_decoder(byte[] inputByte, byte[] outputByte);//G729初始化//G729编码byte[] temp = capturedata;//已经得到的本地音频流 va_g729a_encoder(temp, capturedata);//G729解码va_g729a_decoder(temp, capturedata);