Changeset fe0b448 in mainline for uspace/lib/pcm/src
- Timestamp:
- 2013-03-17T13:54:01Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 059490c2
- Parents:
- 36774cf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcm/src/format.c
r36774cf rfe0b448 74 74 #define from(x, type, endian) (float)(type ## _ ## endian ## 2host(x)) 75 75 #define to(x, type, endian) (float)(host2 ## type ## _ ## endian(x)) 76 77 const pcm_format_t AUDIO_FORMAT_DEFAULT = { 78 .channels = 2, 79 .sampling_rate = 44100, 80 .sample_format = PCM_SAMPLE_SINT16_LE, 81 }; 82 83 const pcm_format_t AUDIO_FORMAT_ANY = { 84 .channels = 0, 85 .sampling_rate = 0, 86 .sample_format = 0, 87 }; 76 88 77 89 static float get_normalized_sample(const void *buffer, size_t size,
Note:
See TracChangeset
for help on using the changeset viewer.