| 123456789101112131415161718192021222324 |
- return {
- tag = 'sourcePlayback',
- summary = 'Set the volume of the Source.',
- description = 'Sets the current volume factor for the Source.',
- arguments = {
- volume = {
- type = 'number',
- description = 'The new volume.'
- },
- units = {
- type = 'VolumeUnit',
- default = [['linear']],
- description = 'The units of the value.'
- }
- },
- returns = {},
- variants = {
- {
- arguments = { 'volume', 'units' },
- returns = {}
- }
- },
- notes = 'The volume will be clamped to a 0-1 range (0 dB).'
- }
|