[go: up one dir, main page]

Menu

[cc12d7]: / gtk3 / opus.cpp  Maximize  Restore  History

Download this file

16 lines (13 with data), 405 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#include <opus/opus.h>
#include <stdio.h>
int main() {
int error;
OpusEncoder *encoder = opus_encoder_create(48000, 2, OPUS_APPLICATION_AUDIO, &error);
if (error != OPUS_OK || !encoder) {
printf("Opus encoder creation failed: %s\n", opus_strerror(error));
return 1;
}
printf("Opus encoder created successfully.\n");
opus_encoder_destroy(encoder);
return 0;
}