-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class library and ide: refactor server #2422
class library and ide: refactor server #2422
Conversation
This commit fixes the display of the recording time in the IDE gui. It also adds a hook to the pause and resume recording functions.
For the server GUI window, the SimpleController should take the view as dependant.
This is symmetric to `register`.
Stethoscope calls `serverTree` already.
- a minor API change: the methods called on Volume are adopted to standard usage: numChans (deprecated) is now numChannels. - refactoring of the code, use method instead of function for update.
This is a rather large refactoring, but because of its interdependencies is hard to dissect into pieces. – move functionality between Server and NetAddr - simplify Buffer allocation methods - unify code formatting - move recording functionality to recorder class - moves recording defaults to ServerOptions - makes hack unnecessary for reserved recording buffers - print more informative messages - deprecates the `set_` class method (replaced by `all_` already long ago).
This reverts commit e8879ba.
Same as supercollider#2405, but keeps this branch functional.
I don't understand why this failed. The error is |
Retriggering the build "fixed" it ;) |
excellent. |
What should I look for testing this PR? |
argument::server | ||
|
||
|
||
InstanceMethods:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small doc warnings:
WARNING: SCDoc: In /home/nathan/git/supercollider/HelpSource/Classes/Recorder.schelp
Method -prepareForRecord has 2 args, but doc has 1 argument:: tags.
WARNING: SCDoc: In /home/nathan/git/supercollider/HelpSource/Classes/Recorder.schelp
Method -record has 5 args, but doc has 1 argument:: tags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, done
@snappizz: A lot of the server class functionality is refactored in this PR, but especially booting, quitting, recording, scoping, pause and resume recording, both programmatically and from the IDE menus would be possible places to look at. In terms of code quality, the C++/Qt code may need more eyes perhaps. |
That's what I had thought as well, but when I call |
It would be worth testing to be sure this doesn't suppress error posting from scsynth. I believe |
For what this PR is concerned, I'm rather curious to know where the posting comes from. It could be used at least for local servers to detect a killed server. |
I have filed #2452 concerning the inability to disable You can detect a killed server using the |
Yes, but only if you have called the command from sclang. Make the following experiment: Open the terminal (bash or whatever) and type |
I think we keep talking past each other here... never mind. Thanks for your work on this, I'm excited to get this merged. Let's get at least one thorough code review in before merging. Sound good? I can go over it on Saturday, and of course everyone else should feel free to step up. |
… yes, never mind. sounds good! |
Ah, now I got it: because sclang actually creates the process using a see #2458. |
ping … |
sorry i didn't get around to code review as promised :( pretty busy for the next few days unfortunately |
no problem, just wanted to keep this awake :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a big improvement - code is much clearer than it was, and better organized.
Testing for a few hours, no problems found; will test for a few more days.
I swear I will get around to code review for this at some point, but right now I'm behind on work and school. |
@snappizz no Problem, this is just for keeping it alive. if others can test too, it wouldn't hurt |
I have browsed through it, and it looks really good.
Will test for a few more days - it feels very complete and mergeable already.
best adc
… On 29/11/2016, at 19:20 , Julian Rohrhuber ***@***.***> wrote:
@snappizz no Problem, this is just for keeping it alive. if others can test too, it wouldn't hurt
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
#2521. It was only a matter of time before we got caught with pants around ankles. |
that is a rather drastic metaphor for code review, james! |
Oh, heh heh, it's a modified version of the American idiom "(to) get caught with your pants down," meaning to be unprepared for something that you knew was coming up and should have been ready to do. It seemed apt (if colorful). |
Here is the last version of the server refactoring.