Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs for "devicename" parameter in 'pygame.mixer.init()' #2525

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/reST/ref/mixer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ change the default buffer by calling :func:`pygame.mixer.pre_init` before
playback. The buffer size must be a power of two (if not it is rounded up to
the next nearest power of 2).

The devicename parameter is the name of sound device to open for audio
playback. Allowed device names will vary based on the host system.
Matiiss marked this conversation as resolved.
Show resolved Hide resolved
If left as ``None`` then a sensible default will be chosen for you.

Some platforms require the :mod:`pygame.mixer` module to be initialized
after the display modules have initialized. The top level ``pygame.init()``
takes care of this automatically, but cannot pass any arguments to the mixer
Expand Down