Results 1 to 7 of 7

Thread: How do I set Line-in mute with LUA? Problems with the dash!

  1. #1
    Join Date
    Jul 2001
    Location
    Risør - Norway
    Posts
    5,305

    Default How do I set Line-in mute with LUA? Problems with the dash!

    I have spent this weekend making crank calls on my free IP phone and messing around with my multi-zone system. I have one problem (in addition to angry people being bugged...), and that is Line-In volume (used with an external TV card to get the TV sound through any zone at any time). The LUA is this:
    Code:
    if GetLine-InMute (CC00) == 0 then
      SetLine-InMute (1)
     else
    end
    And the error is this:
    Code:
    error: `=' expected;
      last token read: `-' at line 2 in string "?"
    I know why it's happening: LUA can't handle a dash as a part of a variable, so this would probably happen with spaces as well, they will be taken as two variables (how do I for instance mute CD Digital?). But how do I mark it as part of the variable?
    Tor - managing director of the Cinema Inferno home theater and multi-zone sound system with Girder running the show in the back, NetRemote as the GUI and Media Center 17, PowerDVD and ZoomPlayer as playback software
    Hobsyssel mastiffs: http://www.hobsyssel.no

  2. #2
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    You can use an underscore instead _
    --Rob

  3. #3
    Join Date
    Jul 2001
    Location
    Risør - Norway
    Posts
    5,305

    Default

    Thanks! Unfortnately that didn't work. But it may be that those mutes aren't implemented in the LUA volume library. Which is weird, since the command to check all values shows it! Perhaps Mike can answer that, whenever he wakes up...
    Tor - managing director of the Cinema Inferno home theater and multi-zone sound system with Girder running the show in the back, NetRemote as the GUI and Media Center 17, PowerDVD and ZoomPlayer as playback software
    Hobsyssel mastiffs: http://www.hobsyssel.no

  4. #4
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    I haven't used the LUA volume library - where is it?
    --Rob

  5. #5
    Join Date
    Jul 2001
    Location
    Risør - Norway
    Posts
    5,305

    Default

    It's installed by default - it's a plugin you'll have to enable. Then you can download the Easy Volume group of Mike's in the download section. There's a command to show all volume sliders LUA can work with:

    Code:
    dofile (GetDirectory('GIRDERDIR').."\\luavolume.lua") -- Load extended volume control functions 
    MixerPrintDetails ()
    Tor - managing director of the Cinema Inferno home theater and multi-zone sound system with Girder running the show in the back, NetRemote as the GUI and Media Center 17, PowerDVD and ZoomPlayer as playback software
    Hobsyssel mastiffs: http://www.hobsyssel.no

  6. #6
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    Looks to me as though you should be using the GetSourceMute() and SetSourceMute() functions
    --Rob

  7. #7
    Join Date
    Jul 2001
    Location
    Risør - Norway
    Posts
    5,305

    Default

    Ah! Thanks! I hate PDFs... I didn't notice the help file because I haven't got Acrobat Reader on that computer... Now that I've found it, I should be able to fix this.
    Tor - managing director of the Cinema Inferno home theater and multi-zone sound system with Girder running the show in the back, NetRemote as the GUI and Media Center 17, PowerDVD and ZoomPlayer as playback software
    Hobsyssel mastiffs: http://www.hobsyssel.no

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •