diff options
| author | Dave Love | 2000-11-28 11:38:55 +0000 |
|---|---|---|
| committer | Dave Love | 2000-11-28 11:38:55 +0000 |
| commit | a6b8df2fd76d81378aaa87c3ac7fc575cac07746 (patch) | |
| tree | e5acad81a6c8028c84d45ce9a54d2c799ed8044a /lispref | |
| parent | d02f1cb873450a41b8bbcd0bfdc3aa91b00b8b5b (diff) | |
| download | emacs-a6b8df2fd76d81378aaa87c3ac7fc575cac07746.tar.gz emacs-a6b8df2fd76d81378aaa87c3ac7fc575cac07746.zip | |
Doc play-sound-file and sound :device.
Diffstat (limited to 'lispref')
| -rw-r--r-- | lispref/os.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lispref/os.texi b/lispref/os.texi index 91a15c8bfb2..41d07aa6d74 100644 --- a/lispref/os.texi +++ b/lispref/os.texi | |||
| @@ -1754,6 +1754,10 @@ sound file. We recommend using a unibyte string. | |||
| 1754 | This specifies how loud to play the sound. It should be a number in the | 1754 | This specifies how loud to play the sound. It should be a number in the |
| 1755 | range of 0 to 1. The default is to use whatever volume has been | 1755 | range of 0 to 1. The default is to use whatever volume has been |
| 1756 | specified before. | 1756 | specified before. |
| 1757 | |||
| 1758 | @item :device @var{device} | ||
| 1759 | This specifies the system device on which to play the sound, as a | ||
| 1760 | string. The default device is system-dependent. | ||
| 1757 | @end table | 1761 | @end table |
| 1758 | 1762 | ||
| 1759 | Before actually playing the sound, @code{play-sound} | 1763 | Before actually playing the sound, @code{play-sound} |
| @@ -1761,6 +1765,12 @@ calls the functions in the list @code{play-sound-functions}. | |||
| 1761 | Each function is called with one argument, @var{sound}. | 1765 | Each function is called with one argument, @var{sound}. |
| 1762 | @end defun | 1766 | @end defun |
| 1763 | 1767 | ||
| 1768 | @defun play-sound-file file &optional volume device | ||
| 1769 | @tindex play-sound-file | ||
| 1770 | This function is an alternative interface to playing a sound @var{file} | ||
| 1771 | specifying an optional @var{volume} and @var{device}. | ||
| 1772 | @end defun | ||
| 1773 | |||
| 1764 | @tindex play-sound-functions | 1774 | @tindex play-sound-functions |
| 1765 | @defvar play-sound-functions | 1775 | @defvar play-sound-functions |
| 1766 | A list of functions to be called before playing a sound. Each function | 1776 | A list of functions to be called before playing a sound. Each function |