Howto:Reload sound configuration without restarting: Difference between revisions

Jump to navigation Jump to search
I encountered this problem on the concatenation of paths, "~" it is not enough you need to insert the character "/" then I replaced "~" with the string ~ '/' ~
(I encountered this problem on the concatenation of paths, "~" it is not enough you need to insert the character "/" then I replaced "~" with the string ~ '/' ~)
Line 12: Line 12:
   if(sf == nil)
   if(sf == nil)
   {
   {
     sf = getprop('/sim/fg-root') ~ getprop('/sim/sound/path');
     sf = getprop('/sim/fg-root') ~ '/' ~ getprop('/sim/sound/path');
     setprop('/tmp/sound-xml/path', sf);
     setprop('/tmp/sound-xml/path', sf);
   }
   }
408

edits

Navigation menu