Changeset 9e1800c in mainline for uspace/app/wavplay/main.c


Ignore:
Timestamp:
2013-03-17T16:23:57Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bd5860f
Parents:
504f1ea3
Message:

libhound: Implement hound client side API sing client side protocol headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/wavplay/main.c

    r504f1ea3 r9e1800c  
    6060                return EIO;
    6161        }
    62         unsigned rate, channels;
    63         pcm_sample_format_t format;
     62        pcm_format_t format;
    6463        const char *error;
    65         int ret = wav_parse_header(&header, NULL, NULL, &channels, &rate,
    66             &format, &error);
     64        int ret = wav_parse_header(&header, NULL, NULL, &format.channels,
     65            &format.sampling_rate, &format.sample_format, &error);
    6766        if (ret != EOK) {
    6867                printf("Error parsing wav header: %s.\n", error);
     
    7170        }
    7271        hound_context_t *hound = hound_context_create_playback(filename,
    73             channels, rate, format, 0);
     72            format, 0);
    7473        if (!hound) {
    7574                printf("Failed to create HOUND context\n");
Note: See TracChangeset for help on using the changeset viewer.