R/play_paplay.R

Defines functions play_paplay

Documented in play_paplay

#' Use Paplay to play sound
#'
#' Uses Paplay player if available
#' @param fname filename of a .wav sound file
#' @export
play_paplay <- function(fname) {
  system(
    paste(
      "paplay "
      , fname
      )
    , ignore.stdout = TRUE
    , ignore.stderr = TRUE
    , wait = FALSE
    )
  invisible(NULL)
}
wolfm4ne/geekr documentation built on Oct. 3, 2023, 4:44 p.m.