Changeset fe0b448 in mainline for uspace/lib/pcm/src


Ignore:
Timestamp:
2013-03-17T13:54:01Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
059490c2
Parents:
36774cf
Message:

libpcm: Move constant definitions to .c file

File:
1 edited

Legend:

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

    r36774cf rfe0b448  
    7474#define from(x, type, endian) (float)(type ## _ ## endian ## 2host(x))
    7575#define to(x, type, endian) (float)(host2 ## type ## _ ## endian(x))
     76
     77const pcm_format_t AUDIO_FORMAT_DEFAULT = {
     78        .channels = 2,
     79        .sampling_rate = 44100,
     80        .sample_format = PCM_SAMPLE_SINT16_LE,
     81        };
     82
     83const pcm_format_t AUDIO_FORMAT_ANY = {
     84        .channels = 0,
     85        .sampling_rate = 0,
     86        .sample_format = 0,
     87        };
    7688
    7789static float get_normalized_sample(const void *buffer, size_t size,
Note: See TracChangeset for help on using the changeset viewer.