| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/audio/libmatemixer/files/ |
Upload File : |
--- backends/oss/oss-backend.c.orig 2017-03-12 15:28:02 UTC
+++ backends/oss/oss-backend.c
@@ -40,6 +40,8 @@
* from the sndstat file, but avoid even trying that on systems where this
* is not needed and the file is not present */
#define OSS_PATH_SNDSTAT "/dev/sndstat"
+ /* remove SOUND_MIXER_INFO on FreeBSD, use OSS_PATH_SNDSTAT */
+#undef SOUND_MIXER_INFO
#endif
#define OSS_MAX_DEVICES 32
@@ -377,6 +379,10 @@ read_device_label (OssBackend *oss, cons
{
guint index;
+ /* default_device setting only in read_device_label_sndstat()
+ * on FreeBSD use OSS_PATH_SNDSTAT
+ */
+
#ifdef SOUND_MIXER_INFO
do {
struct mixer_info info;
@@ -430,6 +436,7 @@ read_device_label_sndstat (OssBackend *
while (fgets (line, sizeof (line), fp) != NULL) {
gchar *p;
+ g_strchomp(line); // required for g_str_has_suffix()
if (g_str_has_prefix (line, prefix) == FALSE)
continue;