diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-02-27 12:00:18 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-02-27 12:00:18 +0000 |
| commit | 06c11d8aa29e3a097c3ceb076b7d78f1c28a974f (patch) | |
| tree | 4933733ecc298cde884d703e40d726f8a6be8adb /rotord/rotor.h | |
| parent | 6921d2df9e60525d6e0ddb9452f6eea5845b670c (diff) | |
parsing work packet
Diffstat (limited to 'rotord/rotor.h')
| -rwxr-xr-x | rotord/rotor.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/rotord/rotor.h b/rotord/rotor.h index 4961b98..594465d 100755 --- a/rotord/rotor.h +++ b/rotord/rotor.h @@ -135,6 +135,22 @@ namespace Rotor { work_queue.push_back(item); mutex.unlock(); } + std::string session_command(const std::vector<std::string>& command){ + string response; + mutex.lock(); + if (command[1]=="audio") { + if (command[0]=="PUT") { + //get audio file location and initiate analysis + if (command.size()>1) { + //pass message to task + work_queue.push_back(command[2]); + response="<status>1</status>\n"; + } + } + } + mutex.unlock(); + return response; + } Render_status get_status(); void cancel(); //interrupt locking process int make_preview(int nodeID, float time); //starts a frame preview - returns status code - how to retrieve? |
