added flush argument to GetRecording for C# interface