diff options
Diffstat (limited to 'PC/winsound.c')
-rw-r--r-- | PC/winsound.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/PC/winsound.c b/PC/winsound.c index 704af6c..26508b6 100644 --- a/PC/winsound.c +++ b/PC/winsound.c @@ -40,13 +40,13 @@ #include <conio.h> /* port functions on Win9x */ #include <Python.h> -static char sound_playsound_doc[] = +PyDoc_STRVAR(sound_playsound_doc, "PlaySound(sound, flags) - a wrapper around the Windows PlaySound API\n" "\n" "The sound argument can be a filename, data, or None.\n" -"For flag values, ored together, see module documentation.\n"; +"For flag values, ored together, see module documentation."); -static char sound_beep_doc[] = +PyDoc_STRVAR(sound_beep_doc, "Beep(frequency, duration) - a wrapper around the Windows Beep API\n" "\n" "The frequency argument specifies frequency, in hertz, of the sound.\n" @@ -54,9 +54,9 @@ static char sound_beep_doc[] = "The duration argument specifies the number of milliseconds.\n" "On WinNT and 2000, the platform Beep API is used directly. Else funky\n" "code doing direct port manipulation is used; it's unknown whether that\n" -"will work on all systems.\n"; +"will work on all systems."); -static char sound_module_doc[] = +PyDoc_STRVAR(sound_module_doc, "PlaySound(sound, flags) - play a sound\n" "SND_FILENAME - sound is a wav file name\n" "SND_ALIAS - sound is a registry sound association name\n" @@ -68,7 +68,7 @@ static char sound_module_doc[] = "SND_NOSTOP - Do not interrupt any sounds currently playing\n" // Raising RuntimeError if needed "SND_NOWAIT - Return immediately if the sound driver is busy\n" // Without any errors "\n" -"Beep(frequency, duration) - Make a beep through the PC speaker.\n"; +"Beep(frequency, duration) - Make a beep through the PC speaker."); PyObject * sound_playsound(PyObject *s, PyObject *args) |