Lines 40-45
Link Here
|
40 |
* from the sndstat file, but avoid even trying that on systems where this |
40 |
* from the sndstat file, but avoid even trying that on systems where this |
41 |
* is not needed and the file is not present */ |
41 |
* is not needed and the file is not present */ |
42 |
#define OSS_PATH_SNDSTAT "/dev/sndstat" |
42 |
#define OSS_PATH_SNDSTAT "/dev/sndstat" |
|
|
43 |
/* remove SOUND_MIXER_INFO on FreeBSD, use OSS_PATH_SNDSTAT */ |
44 |
#undef SOUND_MIXER_INFO |
43 |
#endif |
45 |
#endif |
44 |
|
46 |
|
45 |
#define OSS_MAX_DEVICES 32 |
47 |
#define OSS_MAX_DEVICES 32 |
Lines 373-378
Link Here
|
373 |
{ |
375 |
{ |
374 |
guint index; |
376 |
guint index; |
375 |
|
377 |
|
|
|
378 |
/* default_device setting only in read_device_label_sndstat() |
379 |
* on FreeBSD use OSS_PATH_SNDSTAT |
380 |
*/ |
381 |
|
376 |
#ifdef SOUND_MIXER_INFO |
382 |
#ifdef SOUND_MIXER_INFO |
377 |
do { |
383 |
do { |
378 |
struct mixer_info info; |
384 |
struct mixer_info info; |
Lines 426-431
Link Here
|
426 |
|
432 |
|
427 |
while (fgets (line, sizeof (line), fp) != NULL) { |
433 |
while (fgets (line, sizeof (line), fp) != NULL) { |
428 |
gchar *p; |
434 |
gchar *p; |
|
|
435 |
g_strchomp(line); // required for g_str_has_suffix() |
429 |
|
436 |
|
430 |
if (g_str_has_prefix (line, prefix) == FALSE) |
437 |
if (g_str_has_prefix (line, prefix) == FALSE) |
431 |
continue; |
438 |
continue; |