diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2016-09-05 21:31:21 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2016-09-05 21:31:21 (GMT) |
commit | ae8298bfb78eebc6c1bf914c89ec397121640a94 (patch) | |
tree | 848b6d5390ebab9d35a64322ce585f2dbafa2096 /Doc | |
parent | 0e76e67246b4e6e6bb15d04748f40ed96e405d5c (diff) | |
download | cpython-ae8298bfb78eebc6c1bf914c89ec397121640a94.zip cpython-ae8298bfb78eebc6c1bf914c89ec397121640a94.tar.gz cpython-ae8298bfb78eebc6c1bf914c89ec397121640a94.tar.bz2 |
Closes #11620: Fix support for SND_MEMORY in winsound.PlaySound.
Based on a patch by Tim Lesher.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/winsound.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/winsound.rst b/Doc/library/winsound.rst index d2c4210..e72d025 100644 --- a/Doc/library/winsound.rst +++ b/Doc/library/winsound.rst @@ -25,7 +25,8 @@ provided by Windows platforms. It includes functions and several constants. .. function:: PlaySound(sound, flags) Call the underlying :c:func:`PlaySound` function from the Platform API. The - *sound* parameter may be a filename, audio data as a string, or ``None``. Its + *sound* parameter may be a filename, a system sound alias, audio data as a + :term:`bytes-like object`, or ``None``. Its interpretation depends on the value of *flags*, which can be a bitwise ORed combination of the constants described below. If the *sound* parameter is ``None``, any currently playing waveform sound is stopped. If the system @@ -92,7 +93,7 @@ provided by Windows platforms. It includes functions and several constants. .. data:: SND_MEMORY The *sound* parameter to :func:`PlaySound` is a memory image of a WAV file, as a - string. + :term:`bytes-like object`. .. note:: |