Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mickel8 committed Aug 3, 2024
1 parent 407330e commit d1801ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions c_src/xav/reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ int reader_init(struct Reader *reader, unsigned char *path, size_t path_size, in
#else
av_opt_set_channel_layout(reader->swr_ctx, "in_channel_layout", reader->c->channel_layout, 0);
av_opt_set_channel_layout(reader->swr_ctx, "out_channel_layout", reader->c->channel_layout, 0);
XAV_LOG_DEBUG("in_chlayout %ld", reader->c->channel_layout);
XAV_LOG_DEBUG("in nb_channels %d",
av_get_channel_layout_nb_channels(reader->c->channel_layout));
#endif

av_opt_set_int(reader->swr_ctx, "in_sample_rate", reader->c->sample_rate, 0);
Expand Down
Binary file added test/fixtures/harvard.wav
Binary file not shown.

0 comments on commit d1801ba

Please sign in to comment.