[mythtv] [PATCH] Fix for non-OSS audio

Bob Ham rah at bash.sh
Fri Sep 2 13:41:15 UTC 2005


Thanks for the heads up.  Ticket #289 raised.

Bob
-- 
Bob Ham <rah at bash.sh>

-----Original Message-----
From: stanley kamithi [mailto:skamithi at gmail.com] 
Sent: Friday, September 02, 2005 1:36 PM
To: rah at bash.sh
Subject: Re: [mythtv] [PATCH] Fix for non-OSS audio

Not sure if you know this.

No need to send patches to the dev alias anymore. Just open a ticket @
cvs.mythtv.org. That's the best way to get your changes added, tested,
modified..etc.

On 9/2/05, Bob Ham <rah at bash.sh> wrote:
Hi,

This fixes some #define problems with systems that don't have a soundcard.h.
These systems include GNU/Linux, not just Darwin.

Index: mythtv/libs/libmythtv/NuppelVideoRecorder.cpp
=================================================================== 
--- mythtv/libs/libmythtv/NuppelVideoRecorder.cpp       (revision 7193)
+++ mythtv/libs/libmythtv/NuppelVideoRecorder.cpp       (working copy)
@@ -614,7 +614,7 @@
     int frag, blocksize = 4096;
     int tmp; 

-#ifdef CONFIG_DARWIN
+#if defined(CONFIG_DARWIN) || ( !defined(HAVE_SYS_SOUNDCARD_H) &&
!defined(HAVE_SOUNDCARD_H))
     VERBOSE(VB_IMPORTANT, QString("NVR::AudioInit() This Unix doesn't support" 
                                   " device files for audio access. Skipping"));
     return 1;
@@ -2076,7 +2076,7 @@

void NuppelVideoRecorder::doAudioThread(void)
{
-#ifdef CONFIG_DARWIN
+#if defined(CONFIG_DARWIN) || ( !defined(HAVE_SYS_SOUNDCARD_H) && 
!defined(HAVE_SOUNDCARD_H))
     VERBOSE(VB_IMPORTANT,
             QString("NVR::doAudioThread() This Unix doesn't support"
                     " device files for audio access. Skipping"));
Index: mythtv/programs/mythbackend/mainserver.cpp
===================================================================
--- mythtv/programs/mythbackend/mainserver.cpp  (revision 7193) 
+++ mythtv/programs/mythbackend/mainserver.cpp  (working copy)
@@ -826,7 +826,7 @@
             if (audiodevice.right(4) == audiooutputdevice.right(4) &&
                 (cardtype == "V4L" || cardtype == "MJPEG")) //they match
             {
-#ifdef CONFIG_DARWIN
+#if defined(CONFIG_DARWIN) || ( !defined(HAVE_SYS_SOUNDCARD_H) &&
!defined(HAVE_SOUNDCARD_H)) 
                 VERBOSE(VB_ALL, QString("Audio device files are not "
                                         "supported on this Unix."));
#else



Regards,

Bob Ham <rah at bash.sh>



_______________________________________________
mythtv-dev mailing list 
mythtv-dev at mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev





More information about the mythtv-dev mailing list