Changeset 71fe7e9d in mainline
- Timestamp:
- 2013-03-16T18:42:17Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5c1b3cd
- Parents:
- 9df99a17
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/wavplay/dplay.c
r9df99a17 r71fe7e9d 38 38 #include <str_error.h> 39 39 #include <str.h> 40 #include <devman.h>41 40 #include <audio_pcm_iface.h> 42 41 #include <fibril_synch.h> … … 51 50 #include "dplay.h" 52 51 53 #define BUFFER_PARTS 252 #define DEFAULT_FRAGMENTS 2 54 53 55 54 typedef struct { … … 86 85 async_answer_0(iid, EOK); 87 86 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; 89 88 while (1) { 90 89 ipc_call_t call; … … 130 129 assert(pb); 131 130 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; 133 132 printf("Registering event callback\n"); 134 133 int ret = audio_pcm_register_event_callback(pb->device,
Note:
See TracChangeset
for help on using the changeset viewer.