diff options
author | Gregory Maxwell <greg@xiph.org> | 2012-08-08 08:52:36 +0400 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2012-08-08 08:52:36 +0400 |
commit | 88c499c95964af732000f8b50b9ac86e378963fb (patch) | |
tree | 76e34beda8efe623ffaa8848bbb08cc85d16a7c6 /tests/test_opus_api.c | |
parent | bb389c67f9a6f5467c26e107925b22884189ef52 (diff) |
Add basic {GET,SET}_LSB_DEPTH API tests.
Diffstat (limited to 'tests/test_opus_api.c')
-rw-r--r-- | tests/test_opus_api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_opus_api.c b/tests/test_opus_api.c index 66efa1bc..28ad3dc5 100644 --- a/tests/test_opus_api.c +++ b/tests/test_opus_api.c @@ -1155,6 +1155,10 @@ opus_int32 test_enc_api(void) " OPUS_SET_SIGNAL .............................. OK.\n", " OPUS_GET_SIGNAL .............................. OK.\n") + CHECK_SETGET(OPUS_SET_LSB_DEPTH(i),OPUS_GET_LSB_DEPTH(&i),7,25,16,24, + " OPUS_SET_LSB_DEPTH ........................... OK.\n", + " OPUS_GET_LSB_DEPTH ........................... OK.\n") + /*OPUS_SET_FORCE_MODE is not tested here because it's not a public API, however the encoder tests use it*/ if(opus_encoder_ctl(enc,OPUS_GET_FINAL_RANGE(&enc_final_range))!=OPUS_OK)test_failed(); |