Changeset af05429 in mainline for uspace/app/dplay/wave.c


Ignore:
Timestamp:
2011-12-05T17:03:57Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eaa1c28
Parents:
c0149cc
Message:

dplay, wave: Make data and size parameters voluntary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/dplay/wave.c

    rc0149cc raf05429  
    4343    bool *sign, const char **error)
    4444{
    45         if (!file || !data || !data_size) {
     45        if (!file) {
    4646                if (error)
    47                         *error = "file, data and data_size must be specified";
     47                        *error = "file not present";
    4848                return EINVAL;
    4949        }
     
    8686        }
    8787
    88         *data = header->data;
    89         *data_size = uint32_t_le2host(header->subchunk2_size);
     88        if (data)
     89                *data = header->data;
     90        if (data_size)
     91                *data_size = uint32_t_le2host(header->subchunk2_size);
    9092
    9193        if (sampling_rate)
Note: See TracChangeset for help on using the changeset viewer.