Revision 59be6a47 src/clientconnection.cpp

View differences:

src/clientconnection.cpp
107 107
}
108 108

  
109 109
int ClientConnection::schedule(const std::string &type, const std::string &channel,
110
			       time_t when, unsigned duration, int priority,
110
			       bool convertToPS, time_t when, unsigned duration, int priority,
111 111
			       const std::string &outputFile)
112 112
{
113 113
  SetBlocking saveBlocking(control_, true);
......
118 118

  
119 119
  std::string command = 
120 120
    "SCHEDULE " + dateTime + " " + type + " " + escapeWS(channel) + " " + 
121
    toString(priority) + " " + toString(duration * 60) + " " + outputFile + "\n";
121
    toString(convertToPS) + " " + toString(priority) + " " + 
122
    toString(duration * 60) + " " + outputFile + "\n";
122 123
  std::cerr << command;
123 124

  
124 125
  control_.write(command);
......
174 175
  return false;
175 176
}
176 177

  
177
bool ClientConnection::tune(const std::string &type, const std::string &channel, int priority)
178
bool ClientConnection::tune(const std::string &type, const std::string &channel, 
179
			    bool convertToPS, int priority)
178 180
{
179 181
  SetBlocking saveBlocking(control_, true);
180
  control_.write("TUNE " + type + " " + escapeWS(channel) + " " + toString(priority) + "\n");
182
  control_.write("TUNE " + type + " " + escapeWS(channel) + " " + 
183
		 toString(convertToPS) + " " + toString(priority) + "\n");
181 184
  std::string reply;
182 185
  control_.readLine(reply);
183 186
  if (reply == "OK\n")

Also available in: Unified diff