Mercurial > emacs
comparison lispref/os.texi @ 33951:ac7551c36926
Doc play-sound-file and sound :device.
author | Dave Love <fx@gnu.org> |
---|---|
date | Tue, 28 Nov 2000 11:38:55 +0000 |
parents | b491fc65a56e |
children | 26912db550c3 |
comparison
equal
deleted
inserted
replaced
33950:a036721cfe80 | 33951:ac7551c36926 |
---|---|
1752 | 1752 |
1753 @item :volume @var{volume} | 1753 @item :volume @var{volume} |
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} |
1760 calls the functions in the list @code{play-sound-functions}. | 1764 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}. |
1766 @end defun | |
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}. | |
1762 @end defun | 1772 @end defun |
1763 | 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 |