Changeset 71fe7e9d in mainline


Ignore:
Timestamp:
2013-03-16T18:42:17Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5c1b3cd
Parents:
9df99a17
Message:

dplay: Rename BUFFER_PARTS ⇒ DEFAULT_FRAGMENTS

remove redundant header

File:
1 edited

Legend:

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

    r9df99a17 r71fe7e9d  
    3838#include <str_error.h>
    3939#include <str.h>
    40 #include <devman.h>
    4140#include <audio_pcm_iface.h>
    4241#include <fibril_synch.h>
     
    5150#include "dplay.h"
    5251
    53 #define BUFFER_PARTS 2
     52#define DEFAULT_FRAGMENTS 2
    5453
    5554typedef struct {
     
    8685        async_answer_0(iid, EOK);
    8786        playback_t *pb = arg;
    88         const size_t fragment_size = pb->buffer.size / BUFFER_PARTS;
     87        const size_t fragment_size = pb->buffer.size / DEFAULT_FRAGMENTS;
    8988        while (1) {
    9089                ipc_call_t call;
     
    130129        assert(pb);
    131130        assert(pb->device);
    132         const size_t fragment_size = pb->buffer.size / BUFFER_PARTS;
     131        const size_t fragment_size = pb->buffer.size / DEFAULT_FRAGMENTS;
    133132        printf("Registering event callback\n");
    134133        int ret = audio_pcm_register_event_callback(pb->device,
Note: See TracChangeset for help on using the changeset viewer.