summaryrefslogtreecommitdiff
path: root/test/test_amrwb.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_amrwb.cc')
-rw-r--r--test/test_amrwb.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/test_amrwb.cc b/test/test_amrwb.cc
index d6a0731..cf82a6e 100644
--- a/test/test_amrwb.cc
+++ b/test/test_amrwb.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_amrwb.cc
*
* Mon Sep 2 14:02:16 CEST 2013
* Copyright 2013 Bent Bisballe Nyeng
@@ -74,7 +74,9 @@ public:
size_t framesize = wb_frame_size[frame_type_index] * num_frames;
{ // 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_AMRWB, csrc,
@@ -94,7 +96,8 @@ public:
for(size_t j = 0; j < framesize; j++) frame[j] = cnt++;
- 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);
@@ -107,7 +110,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_AMRWB, csrc,