Skip to content

Commit

Permalink
add fold warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramesh authored and Ramesh committed Nov 29, 2021
1 parent c49a216 commit d273239
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions samples/sndfile_portaudio.c
Expand Up @@ -32,6 +32,11 @@ int main(int argc, char **argv) {
// Begin the decoder
rates = bluos_ssc_sndfile_mqa_rate_info(in_file, &in_file_info);
num_folds = (rates.original_rate / rates.compressed_rate) / 2;
if (num_folds > 2) {
printf("warning! libbluos_ssc_ipc.so only supports a maximum of two MQA "
"folds. setting fold count to 2.\n");
num_folds = 2;
}
printf("initialising decoder with %d folds\n", num_folds);

// TODO convert rates into number of folds
Expand Down

1 comment on commit d273239

@yuv418
Copy link
Owner

@yuv418 yuv418 commented on d273239 Mar 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure 3rd unfold even exist??

http://web.archive.org/web/20200424071237/http://www.2l.no/hires/ according to these samples I think I concluded that the only way for some of the higher sample rate samples to exist was if there were more than 2 folds.

Please sign in to comment.