0

HDMI Audio command for .csv file



I'm having problems with audio through the HDMI as well. After looking at some of the other posts and trying those solutions, I have still been unable to hear the audio. I'm testing with two .mpgs. One is custom, and other is the dalmations.mpg from the demo.

What command do I need to use to route the audio to HDMI in a .csv file. I've tried the "AUDIOOUTPUT #" command with several choices and have not had any luck.

I was also wondering what would be a good command to have a button press reset back to the main when pressed during a .mpg. When a .mpg is playing, it seems all buttons press are ignored until the .mpg stops.

Thanks.

Elon University

2 comments

  • 0
    Avatar
    RokuLyndon


    The version of the autorun file you currently have doesn't force audio to HDMI from a csv file. The next release of autorun will. Until then, you we can change the autorun.bas so that the default audio output is 2, which is SPDIF/HDMI pcm.



    On lines 911, and 915 the audio output is set for csv files for video and audio playback:



       video.SetAudioOutput(ANALOG)  

       audio.SetAudioOutput(ANALOG)    



    ANALOG is just a variable that's been set to zero. Just change ANALOG to the number 2.



    You can definitely have a button press reset the  video.

    All you have to do is add that button to your csv file in the events row. And, make and entry in that button's column when your particular video is playing.



    For example:



    EVENTS,,button:0

    STATE, myvideo.mpg, myvideo.mpg





    In this simple example, the commas represents columns. When myvideo.mpg is playing and button 0 is pressed, myvideo.mpg starts playing again.
  • 0
    Avatar
    Jrich7


    Thanks.  I was able to take the demo and make the .bas changes and obtain audio.



    I haven't tested the button press, but I put the command on the wrong row in the .csv file.  That is probally my problem.
Please sign in to leave a comment.