Skip to content

Commit

Permalink
changed setAudioLevel application, used uuid_audio
Browse files Browse the repository at this point in the history
  • Loading branch information
navrotskyj committed Aug 13, 2019
1 parent e6334bb commit b0e7782
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/call/audio_lvl.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ func SetAudioLevel(c *Call, args interface{}) error {
return nil
}

data := fmt.Sprintf("%s %s",
data := fmt.Sprintf("uuid_audio %s start %s %s %s",
c.Id(),
getStringValueFromMap("direction", props, AUDIO_LEVEL_DIRECTION_READ),
getStringValueFromMap("level", props, "-1"),
getStringValueFromMap("action", props, "level"),
getStringValueFromMap("level", props, "3"),
)

err := c.Execute("set_audio_level", data)
_, err := c.Api(data)
if err != nil {
c.LogError("SetAudioLevel", data, err.Error())
return err
Expand Down

0 comments on commit b0e7782

Please sign in to comment.