chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disobedience notices rescans
[disorder]
/
lib
/
mixer.c
diff --git
a/lib/mixer.c
b/lib/mixer.c
index b4704b915dcff885a302665f94ec2cb901ca1572..4fd4a9a957f9cf3d4c275e36a5cc0a0fe388b803 100644
(file)
--- a/
lib/mixer.c
+++ b/
lib/mixer.c
@@
-19,6
+19,7
@@
*/
#include <config.h>
*/
#include <config.h>
+#include "types.h"
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
@@
-100,7
+101,12
@@
int mixer_channel(const char attribute((unused)) *c) {
int mixer_control(int attribute((unused)) *left,
int attribute((unused)) *right,
int attribute((unused)) set) {
int mixer_control(int attribute((unused)) *left,
int attribute((unused)) *right,
int attribute((unused)) set) {
- error(0, "don't know how to set volume on this platform");
+ static int reported;
+
+ if(!reported) {
+ error(0, "don't know how to set volume on this platform");
+ reported = 1;
+ }
return -1;
}
#endif
return -1;
}
#endif