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)
}
mike-decarlo/geekr documentation built on Oct. 4, 2023, 6:45 a.m.