<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hey-ya,<br>
    <br>
    Occasionally I get audio failing to start when playing a video
    (Mythbuntu 14, x86-64).<br>
    It seems to happen about 30% of the time on video start.<br>
    It doesn't seem to matter if the box was recently playing video, or
    sitting idle for hours.<br>
    <br>
    The mythfrontend log says:<br>
    <br>
    <tt>Jun 16 07:41:56 mediabox mythfrontend.real: mythfrontend[1532]:
      I CoreContext tv_play.cpp:2225 (HandleStateChange) TV: Attempting
      to change from None to WatchingVideo</tt><tt><br>
    </tt><tt>Jun 16 07:41:56 mediabox mythfrontend.real:
      mythfrontend[1532]: I CoreContext audio/audiopulsehandler.cpp:322
      (SuspendInternal) Pulse: PulseAudio suspend OK</tt><tt><br>
    </tt><font color="#6600cc"><tt>Jun 16 07:41:56 mediabox
        mythfrontend.real: mythfrontend[1532]: E CoreContext
        audio/audiooutputalsa.cpp:340 (GetOutputSettings) ALSA:
        snd_pcm_open("hdmi:CARD=NVidia,DEV=1"): Device or resource busy</tt></font><tt><br>
    </tt><tt>Jun 16 07:41:56 mediabox mythfrontend.real:
      mythfrontend[1532]: N CoreContext audioplayer.cpp:164
      (ReinitAudio) AudioPlayer: Enabling Audio</tt><tt><br>
    </tt><tt>Jun 16 07:41:56 mediabox mythfrontend.real:
      mythfrontend[1532]: I CoreContext avformatdecoder.cpp:2141
      (ScanStreams) AFD: codec AAC has 2 channels</tt><tt><br>
    </tt><tt>Jun 16 07:41:56 mediabox mythfrontend.real:
      mythfrontend[1532]: I CoreContext avformatdecoder.cpp:2632
      (OpenAVCodec) AFD: Opened codec 0xfb71d40, id(AAC) type(Audio)</tt><tt><br>
    </tt><tt>Jun 16 07:41:56 mediabox mythfrontend.real:
      mythfrontend[1532]: I CoreContext avformatdecoder.cpp:2632
      (OpenAVCodec) AFD: Opened codec 0x1027bda0, id(H264) type(Video)</tt><tt><br>
    </tt><tt>Jun 16 07:41:56 mediabox mythfrontend.real:
      mythfrontend[1532]: W CoreContext ringbuffer.cpp:422
      (CalcReadAheadThresh) Enabling buffering optimisations for low
      bitrate stream.</tt><tt><br>
    </tt><tt>Jun 16 07:41:56 mediabox mythfrontend.real:
      mythfrontend[1532]: I CoreContext audio/audiooutputbase.cpp:698
      (Reconfigure) AOBase: Resampling from 44 kHz to 48 kHz with
      quality medium</tt><tt><br>
    </tt><tt>Jun 16 07:41:56 mediabox mythfrontend.real:
      mythfrontend[1532]: I CoreContext audio/audiooutputbase.cpp:792
      (Reconfigure) AOBase: Opening audio device
      'hdmi:CARD=NVidia,DEV=1' ch 2(2) sr 48000 sf signed 16 bit reenc 0</tt><tt><br>
    </tt><font color="#6600cc"><tt>Jun 16 07:41:56 mediabox
        mythfrontend.real: mythfrontend[1532]: E CoreContext
        audio/audiooutputalsa.cpp:463 (OpenDevice) ALSA:
        snd_pcm_open("hdmi:CARD=NVidia,DEV=1"): Device or resource busy</tt></font><tt><br>
    </tt><tt>Jun 16 07:41:56 mediabox mythfrontend.real:
      mythfrontend[1532]: E CoreContext audio/audiooutput.cpp:249
      (Error) AudioOutput Error: Aborting reconfigure</tt><tt><br>
    </tt><tt>Jun 16 07:41:56 mediabox mythfrontend.real:
      mythfrontend[1532]: N CoreContext audioplayer.cpp:157
      (ReinitAudio) AudioPlayer: Disabling Audio, reason is: Aborting
      reconfigure</tt><br>
    <br>
    <br>
    Any ideas on how to fix this?<br>
    <br>
    Could it be something to do with PulseAudio?  Should I remove it ?<br>
    <br>
    Usually just stopping and re-starting playback fixes it, but that's
    a PITA.<br>
    <br>
    thanks,<br>
    -kt<br>
    <br>
  </body>
</html>