|
6.
|
|
|
Ren'Py supports an arbitrary number of audio channels. Three are defined by default:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/audio.rst:14
|
|
7.
|
|
|
music - A channel for music playback.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/audio.rst:17
|
|
8.
|
|
|
sound - A channel for sound effects.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/audio.rst:18
|
|
9.
|
|
|
voice - A channel for voice.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/audio.rst:19
|
|
10.
|
|
|
New channels can be registered with :func:`renpy.music.register_channel`.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/audio.rst:21
|
|
11.
|
|
|
The 'Music Volume', 'Sound Volume', and 'Voice Volume' settings of the in-game preferences menu are used to set individual volumes for these channels.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/audio.rst:23
|
|
12.
|
|
|
Sounds can also be set to play when buttons, menu choices, or imagemaps enter their hovered or activated states. See :ref:`Button Style Properties <button-style-properties>`. Two configuration variables, :var:`config.main_menu_music` and :var:`config.game_menu_music` allow for the given music files to be played as the main and game menu music, respectively.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/audio.rst:27
|
|
13.
|
|
|
In-game, the usual way to play music and sound in Ren'Py is using the three music/sound statements.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/audio.rst:34
|
|
14.
|
|
|
Play Statement
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/audio.rst:38
|
|
15.
|
|
|
The play statement is used to play sound and music. If a file is currently playing, it is interrupted and replaced with the new file.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/audio.rst:40
|