[mythtv-commits] Ticket #289: Fix for non-OSS audio

MythTV mythtv at cvs.mythtv.org
Fri Sep 2 13:23:51 UTC 2005


#289: Fix for non-OSS audio
-------------------------+--------------------------------------------------
 Reporter:  rah at bash.sh  |       Owner:  ijr
     Type:  patch        |      Status:  new
 Priority:  major        |   Milestone:     
Component:  mythtv       |     Version:     
 Severity:  high         |         Cc:               |  
-------------------------+--------------------------------------------------
 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

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/289>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list