Changeset aef1799 in mainline for uspace/lib/pcm/src/format.c


Ignore:
Timestamp:
2012-07-17T10:57:41Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1f7da3b
Parents:
cd8f19d
Message:

Integrate dplay into wavplay.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcm/src/format.c

    rcd8f19d raef1799  
    219219{
    220220        assert(f);
     221        assert(buffer);
    221222        if (channel >= f->channels)
    222223                return 0.0f;
     
    232233        /* This makes it positive */ \
    233234        sample -= (float)(type)low; \
    234         if (sample < 0.0f) { \
    235                 printf("SUB MIN failed\n"); \
    236         } \
    237235        /* This makes it <0,2> */ \
    238236        sample /= (((float)(type)high - (float)(type)low) / 2.0f); \
    239         if (sample > 2.0) { \
    240                 printf("DIV RANGE failed\n"); \
    241         } \
    242237        return sample - 1.0f; \
    243238} while (0)
Note: See TracChangeset for help on using the changeset viewer.