mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2026-04-18 05:23:31 +00:00
package module moved into root of repository.
example in readme updated. level pooler implemented, runs in its own goroutine. Remote type now exported observers example updated.
This commit is contained in:
51
recorder.go
Normal file
51
recorder.go
Normal file
@@ -0,0 +1,51 @@
|
||||
package voicemeeter
|
||||
|
||||
type recorder struct {
|
||||
iRemote
|
||||
outputs
|
||||
}
|
||||
|
||||
func newRecorder() *recorder {
|
||||
o := newOutputs("recorder", 0)
|
||||
return &recorder{iRemote{"recorder", 0}, o}
|
||||
}
|
||||
|
||||
// Play plays the file currently loaded into the recorder
|
||||
func (r *recorder) Play() {
|
||||
r.setter_float("Play", 1)
|
||||
}
|
||||
|
||||
// Stop stops the file currently playing
|
||||
func (r *recorder) Stop() {
|
||||
r.setter_float("Stop", 0)
|
||||
}
|
||||
|
||||
// Pause pauses the file currently playing
|
||||
func (r *recorder) Pause() {
|
||||
r.setter_float("Pause", 1)
|
||||
}
|
||||
|
||||
// Restart restarts the Voicemeeter audio engine
|
||||
func (r *recorder) Replay() {
|
||||
r.setter_float("Replay", 1)
|
||||
}
|
||||
|
||||
// Record records the current track playing
|
||||
func (r *recorder) Record() {
|
||||
r.setter_float("Record", 1)
|
||||
}
|
||||
|
||||
// Ff fast forwards the recorder
|
||||
func (r *recorder) Ff() {
|
||||
r.setter_float("Ff", 1)
|
||||
}
|
||||
|
||||
// Rew rewinds the recorder
|
||||
func (r *recorder) Rew() {
|
||||
r.setter_float("Rew", 1)
|
||||
}
|
||||
|
||||
// Loop enables loop play mode
|
||||
func (r *recorder) Loop(val bool) {
|
||||
r.setter_bool("Mode.Loop", val)
|
||||
}
|
||||
Reference in New Issue
Block a user