r/lua • u/Sudden-Primary4546 • Jun 23 '26
Does this code actually work?
local audio = require("audio")
audio.play("w76288481040676\\music\\cancion.wav")
0
Upvotes
r/lua • u/Sudden-Primary4546 • Jun 23 '26
local audio = require("audio")
audio.play("w76288481040676\\music\\cancion.wav")
11
u/SayuriShoji Jun 23 '26
I don't know whether it works, why don't you try?
Syntax-wise it seems ok, provided the "audio" package has a play function and that the file path is correct and written in a way the play function expects.
7
u/QXJtaW5pdXM Jun 23 '26
Where is this audio module from?
Do you have a link to the module?
I don’t think it’s shipped with the default Lua installer.
6
u/NakeleKantoo Jun 23 '26
idk mate im not your machine
3
u/Additional_Ad6385 Jun 23 '26
The audio module must be locatable first
2
u/Still-Addition-1109 Jun 23 '26
https://tryitands.ee
1
u/Bright-Historian-216 Jun 23 '26
how are we supposed to know? depending on a lot of factors, this may or may not work.
1
u/Helpful-Primary2427 Jun 23 '26
Bro what