Hi Anand, Erik.

If you could confirm that #350807 does NOT affect FreeBSD machines, then
I can do this. If not, I'll have to disable sndfile-programs on !linux.

On GNU/kFreeBSD it currently does not produce static noise as in #350807, because

$ sndfile-play KDE_Startup.wav
*** Playing sound not yet supported on this platform.
*** Please feel free to submit a patch.

;-)))

But package sndfile-programs is usefull even as is, due to

$ sndfile-info KDE_Startup.wav

Version : libsndfile-1.0.16

========================================
File : KDE_Startup.wav
Length : 365228
RIFF : 365220
WAVE
fmt  : 16
  Format        : 0x1 => WAVE_FORMAT_PCM
  Channels      : 1
  Sample Rate   : 22050
  Block Align   : 2
  Bit Width     : 16
  Bytes/sec     : 44100
data : 365184
End

----------------------------------------
Sample Rate : 22050
Frames      : 182592
Channels    : 1
Format      : 0x00010002
Sections    : 1
Seekable    : TRUE
Duration    : 00:00:08.280
Signal Max  : 32767 (-0.00 dB)

Please find bellow a patch for GNU/kFreeBSD,
which turns sndfile-play into real player ;-)
When applied, at least KDE_Startup.wav plays on kfreebsd-i386 cleanly.

Petr

--- examples/sndfile-play.c     2006-01-21 04:53:35.000000000 +0100
+++ examples/sndfile-play.c     2006-07-12 16:55:12.000000000 +0200
@@ -34,7 +34,7 @@
        #include <sys/time.h>
 #endif

-#if defined (__linux__)
+#if defined (__linux__) || defined (__FreeBSD_kernel__) || defined 
(__FreeBSD__)
        #include        <fcntl.h>
        #include        <sys/ioctl.h>
        #include        <sys/soundcard.h>
@@ -339,7 +339,7 @@
 **     Linux/OSS functions for playing a sound.
 */

-#if defined (__linux__)
+#if defined (__linux__) || defined (__FreeBSD_kernel__) || defined 
(__FreeBSD__)

 static int     linux_open_dsp_device (int channels, int srate) ;

@@ -933,6 +933,8 @@
                else
        #endif
                linux_play (argc, argv) ;
+#elif defined (__FreeBSD_kernel__) || defined (__FreeBSD__)
+               linux_play (argc, argv) ;
 #elif (defined (__MACH__) && defined (__APPLE__))
        macosx_play (argc, argv) ;
 #elif (defined (sun) && defined (unix))



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to