version 1.131, 2012/01/10 08:04:19 |
version 1.132, 2012/01/26 09:07:03 |
|
|
* sample rate if no ``-r'' is used |
* sample rate if no ``-r'' is used |
*/ |
*/ |
#ifndef DEFAULT_RATE |
#ifndef DEFAULT_RATE |
#define DEFAULT_RATE 44100 |
#define DEFAULT_RATE 48000 |
#endif |
#endif |
|
|
/* |
/* |
* block size if no ``-z'' is used |
* block size if no ``-z'' is used |
*/ |
*/ |
#ifndef DEFAULT_ROUND |
#ifndef DEFAULT_ROUND |
#define DEFAULT_ROUND (44100 / 15) |
#define DEFAULT_ROUND (48000 / 100) |
#endif |
#endif |
|
|
/* |
/* |
|
|
if (!bufsz) { |
if (!bufsz) { |
if (!round) |
if (!round) |
round = DEFAULT_ROUND; |
round = DEFAULT_ROUND; |
bufsz = round * 4; |
bufsz = round * 2; |
} else if (!round) |
} else if (!round) |
round = bufsz / 4; |
round = bufsz / 2; |
d = dev_new(path, mode, bufsz, round, hold, autovol); |
d = dev_new(path, mode, bufsz, round, hold, autovol); |
if (d == NULL) |
if (d == NULL) |
exit(1); |
exit(1); |