From e475a50ead37b49107e481210ee2a1d89aba768b Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 9 Jan 2006 02:23:50 +0000 Subject: [PATCH] Expose the "play-audio-command" through the props/telnet interface. --- src/Network/props.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Network/props.cxx b/src/Network/props.cxx index 3a0a1986e..2b853a902 100644 --- a/src/Network/props.cxx +++ b/src/Network/props.cxx @@ -354,6 +354,16 @@ PropsChannel::foundTerminator() = args.getNode("timeofday", i-2, true); node->setStringValue( tokens[i].c_str() ); } + } else if ( tokens[1] == "play-audio-message" ) { + if ( tokens.size() == 4 ) { + cout << "props: play audio message = " << tokens[2] + << " " << tokens[3] << endl; + SGPropertyNode *node; + node = args.getNode("path", 0, true); + node->setStringValue( tokens[2].c_str() ); + node = args.getNode("file", 0, true); + node->setStringValue( tokens[3].c_str() ); + } } if ( !globals->get_commands() ->execute(tokens[1].c_str(), &args) ) -- 2.39.5