summaryrefslogtreecommitdiff
path: root/test/test_opus.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_opus.cc')
-rw-r--r--test/test_opus.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/test_opus.cc b/test/test_opus.cc
index 380e7b9..582ea02 100644
--- a/test/test_opus.cc
+++ b/test/test_opus.cc
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set et sw=2 ts=2: */
/***************************************************************************
- * test_init.cc
+ * test_opus.cc
*
* Mon Sep 2 14:02:16 CEST 2013
* Copyright 2013 Bent Bisballe Nyeng
@@ -86,7 +86,9 @@ public:
int sent = 0;
{ // Encode
- struct lrtp_t *lrtp = lrtp_init(KEY, SSRC);
+ lrtp_status_t status;
+ struct lrtp_t *lrtp = lrtp_init(&status, KEY, SSRC);
+ CPPUNIT_ASSERT_EQUAL(status, LRTP_OK);
int x = lrtp_create_profile(lrtp, PROFILE_OPUS, csrc,
OPTION_END);
@@ -137,7 +139,8 @@ public:
printf("Opus error: %s\n", opus_strerror(framesize));
}
- int ret = lrtp_enqueue_frame(lrtp, csrc, frame, framesize, timestamp);
+ int ret = lrtp_enqueue_frame(lrtp, csrc, frame, framesize, timestamp,
+ LRTP_COPY);
while( (ret = lrtp_pack(lrtp, packet, sizeof(packet))) != 0) {
std::string p;
p.append(packet, ret);
@@ -153,7 +156,9 @@ public:
}
{ // Decode
- struct lrtp_t *lrtp = lrtp_init(KEY, SSRC);
+ lrtp_status_t status;
+ struct lrtp_t *lrtp = lrtp_init(&status, KEY, SSRC);
+ CPPUNIT_ASSERT_EQUAL(status, LRTP_OK);
int x = lrtp_create_profile(lrtp, PROFILE_OPUS, csrc,
OPTION_END);