Audio alarm: Difference between revisions

no edit summary
No edit summary
Line 8:
document.write("<meta http-equiv='refresh' content='"+a+";url="+b+".mp3'>")
</script></lang>
=={{header|Liberty BASIC}}==
LB can play wav files natively. Here we call the standard Windows Media Player for an MP3.
If not already running, this will add an extra delay...
It will error if the mp3 file does not exist in the specified path.
<lang lb>
nomainwin
 
prompt "Delay in seconds"; sec$
prompt "MP3 to play as alarm"; mp3$
f$ ="f:\"; mp3$; ".mp3"
 
timer val( sec$) *100, [done]
wait
 
[done]
timer 0
run "C:\Program Files\Windows Media Player\wmplayer.exe " +chr$(34) +f$ +chr$(34)
 
end
</lang>
Anonymous user