| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- return {
- tag = 'sources',
- summary = 'Create a new Source.',
- description = 'Creates a new Source from an ogg, wav, or mp3 file.',
- arguments = {
- filename = {
- type = 'string',
- description = 'The filename of the sound to load.'
- },
- blob = {
- type = 'Blob',
- description = 'The Blob containing the Source data.'
- },
- soundData = {
- type = 'Sound',
- description = 'The Sound containing raw audio samples to play.'
- }
- },
- returns = {
- source = {
- type = 'Source',
- description = 'The new Source.'
- }
- },
- variants = {
- {
- arguments = { 'filename' },
- returns = { 'source' }
- },
- {
- arguments = { 'blob' },
- returns = { 'source' }
- },
- {
- arguments = { 'sound' },
- returns = { 'source' }
- }
- },
- related = {
- 'Source:clone'
- }
- }
|