Changeset 90f05b0f in mainline for uspace/app/dplay/dplay.c
- Timestamp:
- 2012-07-09T07:46:24Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 68d1313
- Parents:
- 0336354a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/dplay/dplay.c
r0336354a r90f05b0f 39 39 #include <str.h> 40 40 #include <devman.h> 41 #include <audio_pcm_ buffer_iface.h>41 #include <audio_pcm_iface.h> 42 42 #include <fibril_synch.h> 43 43 #include <stdio.h> … … 126 126 printf("Buffer data ready.\n"); 127 127 fibril_mutex_lock(&pb->mutex); 128 int ret = audio_pcm_ buffer_start_playback(pb->device, pb->buffer.id,128 int ret = audio_pcm_start_playback(pb->device, pb->buffer.id, 129 129 SUBBUFFERS, sampling_rate, sample_size, channels, sign); 130 130 if (ret != EOK) { … … 137 137 fibril_condvar_wait(&pb->cv, &pb->mutex)); 138 138 139 audio_pcm_ buffer_stop_playback(pb->device, pb->buffer.id);139 audio_pcm_stop_playback(pb->device, pb->buffer.id); 140 140 fibril_condvar_wait(&pb->cv, &pb->mutex); 141 141 printf("\n"); … … 181 181 } 182 182 const char* info = NULL; 183 ret = audio_pcm_ buffer_get_info_str(exch, &info);183 ret = audio_pcm_get_info_str(exch, &info); 184 184 if (ret != EOK) { 185 185 printf("Failed to get PCM info.\n"); … … 192 192 playback_initialize(&pb, exch); 193 193 194 ret = audio_pcm_ buffer_get_buffer(pb.device, &pb.buffer.base,194 ret = audio_pcm_get_buffer(pb.device, &pb.buffer.base, 195 195 &pb.buffer.size, &pb.buffer.id, device_event_callback, &pb); 196 196 if (ret != EOK) { … … 228 228 cleanup: 229 229 munmap(pb.buffer.base, pb.buffer.size); 230 audio_pcm_ buffer_release_buffer(exch, pb.buffer.id);230 audio_pcm_release_buffer(exch, pb.buffer.id); 231 231 close_session: 232 232 async_exchange_end(exch);
Note:
See TracChangeset
for help on using the changeset viewer.