Advertisement
Guest User

reset_audio_on_unpause.lua

a guest
Jan 2nd, 2021
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. function on_unpause()
  2.     mp.set_property("aid","no")
  3.     mp.set_property("aid", currTrack)
  4. end
  5.  
  6. function on_pause()
  7.     currTrack = mp.get_property("aid")
  8. end
  9.  
  10. mp.register_event("unpause", on_unpause)
  11. mp.register_event("pause", on_pause)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement