Working audio source...
This commit is contained in:
parent
9d484f7328
commit
f34135a4a8
1 changed files with 10 additions and 0 deletions
10
src/dcall.c
10
src/dcall.c
|
@ -21,6 +21,16 @@ int main(int argc, char *argv[]) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
g_object_set(G_OBJECT (rx_tap), "port", 5000, NULL);
|
||||
g_object_set(G_OBJECT (rx_tap), "caps", gst_caps_new_simple("application/x-rtp", "media", G_TYPE_STRING, "audio", NULL), NULL);
|
||||
|
||||
g_object_set(G_OBJECT (rx_jitterbuffer), "do-lost", TRUE, NULL);
|
||||
g_object_set(G_OBJECT (rx_jitterbuffer), "do-retransmission", FALSE, NULL);
|
||||
g_object_set(G_OBJECT (rx_jitterbuffer), "latency", 50, NULL);
|
||||
|
||||
g_object_set(G_OBJECT (rx_opusdec), "plc", TRUE, NULL);
|
||||
g_object_set(G_OBJECT (rx_opusdec), "use-inband-fec", FALSE, NULL);
|
||||
|
||||
gst_bin_add_many (GST_BIN (rx), rx_tap, rx_jitterbuffer, rx_depay, rx_opusdec, rx_resample, rx_sink, NULL);
|
||||
gst_element_link_many (rx_tap, rx_jitterbuffer, rx_depay, rx_opusdec, rx_resample, rx_sink, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue