summaryrefslogtreecommitdiff
path: root/src/test_libFLAC/decoders.c
diff options
context:
space:
mode:
authorJosh Coalson <jcoalson@users.sourceforce.net>2004-07-16 00:53:38 +0000
committerJosh Coalson <jcoalson@users.sourceforce.net>2004-07-16 00:53:38 +0000
commit47f51b1c227876c34a753df6190a623be84d317f (patch)
tree7c9b125073c75093f62d3f151c71a8139208cc8c /src/test_libFLAC/decoders.c
parent02d66815b848c04d6bae9de498b4d76011bbd76a (diff)
downloadflac-47f51b1c227876c34a753df6190a623be84d317f.tar.gz
add method for skipping an audio frame, plus tests
Diffstat (limited to 'src/test_libFLAC/decoders.c')
-rw-r--r--src/test_libFLAC/decoders.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test_libFLAC/decoders.c b/src/test_libFLAC/decoders.c
index 5fc93826..ebbd5ae4 100644
--- a/src/test_libFLAC/decoders.c
+++ b/src/test_libFLAC/decoders.c
@@ -386,6 +386,11 @@ static FLAC__bool test_stream_decoder()
return die_s_("returned false", decoder);
printf("OK\n");
+ printf("testing FLAC__stream_decoder_skip_single_frame()... ");
+ if(!FLAC__stream_decoder_skip_single_frame(decoder))
+ return die_s_("returned false", decoder);
+ printf("OK\n");
+
printf("testing FLAC__stream_decoder_flush()... ");
if(!FLAC__stream_decoder_flush(decoder))
return die_s_("returned false", decoder);
@@ -1093,6 +1098,11 @@ static FLAC__bool test_seekable_stream_decoder()
return die_ss_("returned false", decoder);
printf("OK\n");
+ printf("testing FLAC__seekable_stream_decoder_skip_single_frame()... ");
+ if(!FLAC__seekable_stream_decoder_skip_single_frame(decoder))
+ return die_ss_("returned false", decoder);
+ printf("OK\n");
+
printf("testing FLAC__seekable_stream_decoder_flush()... ");
if(!FLAC__seekable_stream_decoder_flush(decoder))
return die_ss_("returned false", decoder);
@@ -1664,6 +1674,11 @@ static FLAC__bool test_file_decoder()
return die_f_("returned false", decoder);
printf("OK\n");
+ printf("testing FLAC__file_decoder_skip_single_frame()... ");
+ if(!FLAC__file_decoder_skip_single_frame(decoder))
+ return die_f_("returned false", decoder);
+ printf("OK\n");
+
printf("testing FLAC__file_decoder_seek_absolute()... ");
if(!FLAC__file_decoder_seek_absolute(decoder, 0))
return die_f_("returned false", decoder);