Parent Directory | Revision Log | Patch
revision 1713 by persson, Thu Mar 6 20:42:22 2008 UTC | revision 1724 by schoenebeck, Tue Apr 22 08:52:54 2008 UTC | |
---|---|---|
# | Line 2557 String LSCPServer::SetGlobalVolume(doubl | Line 2557 String LSCPServer::SetGlobalVolume(doubl |
2557 | LSCPResultSet result; | LSCPResultSet result; |
2558 | try { | try { |
2559 | if (dVolume < 0) throw Exception("Volume may not be negative"); | if (dVolume < 0) throw Exception("Volume may not be negative"); |
2560 | GLOBAL_VOLUME = dVolume; // see common/global.cpp | GLOBAL_VOLUME = dVolume; // see common/global_private.cpp |
2561 | LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_global_info, "VOLUME", GLOBAL_VOLUME)); | LSCPServer::SendLSCPNotify(LSCPEvent(LSCPEvent::event_global_info, "VOLUME", GLOBAL_VOLUME)); |
2562 | } catch (Exception e) { | } catch (Exception e) { |
2563 | result.Error(e); | result.Error(e); |
|
ViewVC Help | |
Powered by ViewVC |