Mercurial > mplayer.hg
comparison libao2/ao_alsa.c @ 12919:aba44b58dea7
Use = instead if # in ALSA device name, as # irritates our config-parser.
Original patch by stan (at) saticed (dot) me (dot) uk
author | reimar |
---|---|
date | Fri, 30 Jul 2004 16:15:06 +0000 |
parents | e28849cfac27 |
children | 2df414ae2d2a |
comparison
equal
deleted
inserted
replaced
12918:eb0d3c1b6c6d | 12919:aba44b58dea7 |
---|---|
197 { | 197 { |
198 char *tmp; | 198 char *tmp; |
199 strncpy (dest, src, len); | 199 strncpy (dest, src, len); |
200 while ((tmp = strrchr(dest, '.'))) | 200 while ((tmp = strrchr(dest, '.'))) |
201 tmp[0] = ','; | 201 tmp[0] = ','; |
202 while ((tmp = strrchr(dest, '#'))) | 202 while ((tmp = strrchr(dest, '='))) |
203 tmp[0] = ':'; | 203 tmp[0] = ':'; |
204 } | 204 } |
205 | 205 |
206 static void print_help () | 206 static void print_help () |
207 { | 207 { |
208 mp_msg (MSGT_AO, MSGL_FATAL, | 208 mp_msg (MSGT_AO, MSGL_FATAL, |
209 "\n-ao alsa commandline help:\n" | 209 "\n-ao alsa commandline help:\n" |
210 "Example: mplayer -ao alsa:mmap:device=hw#0.3\n" | 210 "Example: mplayer -ao alsa:mmap:device=hw=0.3\n" |
211 " sets mmap-mode and first card fourth device\n" | 211 " sets mmap-mode and first card fourth device\n" |
212 "\nOptions:\n" | 212 "\nOptions:\n" |
213 " mmap\n" | 213 " mmap\n" |
214 " Set memory-mapped mode, experimental\n" | 214 " Set memory-mapped mode, experimental\n" |
215 " noblock\n" | 215 " noblock\n" |
216 " Sets non-blocking mode\n" | 216 " Sets non-blocking mode\n" |
217 " device=<device-name>\n" | 217 " device=<device-name>\n" |
218 " Sets device (change , to . and : to #)\n"); | 218 " Sets device (change , to . and : to =)\n"); |
219 } | 219 } |
220 | 220 |
221 /* | 221 /* |
222 open & setup audio device | 222 open & setup audio device |
223 return: 1=success 0=fail | 223 return: 1=success 0=fail |