Changeset a6a9745


Ignore:
Timestamp:
May 8, 2025, 4:57:44 PM (44 hours ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
master
Children:
08a3e71
Parents:
152d681
Message:

[source_wavread] limit to 8 or 16 bits pcm files (closes gh-410)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_wavread.c

    r152d681 ra6a9745  
    208208    goto beach;
    209209  }
    210 #if 0
    211   if ( bitspersample != 16 ) {
    212     AUBIO_ERR("source_wavread: can not process %dbit file %s\n",
     210
     211  if ( bitspersample != 8 && bitspersample != 16 ) {
     212    AUBIO_ERR("source_wavread: can not process %d-bit file %s\n",
    213213        bitspersample, s->path);
    214214    goto beach;
    215215  }
    216 #endif
    217216
    218217  if ( byterate * 8 != sr * channels * bitspersample ) {
Note: See TracChangeset for help on using the changeset viewer.