diff --git a/CHANGELOG.md b/CHANGELOG.md index 26a6a68..75ba6ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ AddActionMembers now adds ScriptMethods instead of ScriptProperties: - Recorder.Armedbus - Recorder.PreRecTime - Recorder.Prefix($prefix) +- Recorder.Eject() references 'Command.Eject' ### Changed diff --git a/README.md b/README.md index 270f9df..e89ed11 100644 --- a/README.md +++ b/README.md @@ -543,6 +543,7 @@ The following methods are available: - Rew() - Record() - Pause() +- Eject() - Load($filepath): string - GoTo($timestring): string, must match the format 'hh:mm:ss' - FileType($format): string, ('wav', 'aiff', 'bwf', 'mp3') diff --git a/lib/recorder.ps1 b/lib/recorder.ps1 index e6cc59b..133bcd3 100644 --- a/lib/recorder.ps1 +++ b/lib/recorder.ps1 @@ -154,6 +154,10 @@ class Recorder : IRemote { [void] Prefix ([string]$prefix) { $this.Setter('prefix', $prefix) } + + [void] Eject () { + $this.remote.Setter('Command.Eject', 1) + } } class RecorderMode : IRemote {