Changeset 9df99a17 in mainline
- Timestamp:
- 2013-03-16T18:39:25Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 71fe7e9d
- Parents:
- 6606378
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/wavplay/dplay.c
r6606378 r9df99a17 51 51 #include "dplay.h" 52 52 53 #define DEFAULT_DEVICE "/hw/pci0/00:01.0/sb16/pcm"54 53 #define BUFFER_PARTS 2 55 54 … … 277 276 { 278 277 int ret = EOK; 279 if (str_cmp(device, "default") == 0) 280 device = DEFAULT_DEVICE; 281 audio_pcm_sess_t *session = audio_pcm_open(device); 278 audio_pcm_sess_t *session = NULL; 279 if (str_cmp(device, "default") == 0) { 280 session = audio_pcm_open_default(); 281 } else { 282 session = audio_pcm_open(device); 283 } 282 284 if (!session) { 283 285 printf("Failed to connect to device %s.\n", device);
Note:
See TracChangeset
for help on using the changeset viewer.