comparison R/rdc/demo/w32PlaySound.R @ 0:0cfcc391201f

initial from svn dyncall-1745
author Daniel Adler
date Thu, 19 Mar 2015 22:26:28 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0cfcc391201f
1 # example: play sound
2
3 lib.winmm <- dyn.load("\\windows\\system32\\winmm.dll")
4 PlaySoundA <- lib.winmm$PlaySoundA
5 playsound <- function(path) rdcCall(PlaySoundA$address,"pii)v",path,0,0)
6 sample <- "c:\\windows\\Media\\tada.wav"
7 playsound(sample)
8