getVolume.lua 509 B

123456789101112131415161718192021222324
  1. return {
  2. tag = 'sourcePlayback',
  3. summary = 'Get the volume of the Source.',
  4. description = 'Returns the current volume factor for the Source.',
  5. arguments = {
  6. units = {
  7. type = 'VolumeUnit',
  8. default = [['linear']],
  9. description = 'The units to return (linear or db).'
  10. }
  11. },
  12. returns = {
  13. volume = {
  14. type = 'number',
  15. description = 'The volume of the Source.'
  16. }
  17. },
  18. variants = {
  19. {
  20. arguments = { 'units' },
  21. returns = { 'volume' }
  22. }
  23. }
  24. }