No description
Find a file
Sam Lantinga 477689ac83 Fixed bug #1011
Daniel Ellis      2010-06-25 15:20:31 PDT

SDL based applications sometimes display the wrong application name in the
Sound Preferences dialog when using pulseaudio.

I can see from the code that the SDL pulse module is initiating a new pulse
audio context and passing an application name using the function
get_progname().

The get_progname() function returns the name of the current process. However,
the process name is often not a suitable name to use. For example, the OpenShot
video editor is a python application, and so "python" is displayed in the Sound
Preferences window (see Bug #596504), when it should be displaying "OpenShot".

PulseAudio allows applications to specify the application name, either at the
time the context is created (as SDL does currently), or by special environment
variables (see http://www.pulseaudio.org/wiki/ApplicationProperties). If no
name is specified, then pulseaudio will determine the name based on the
process.

If you specify the application name when initiating the pulseaudio context,
then that will override any application name specified using an environment
variable.

As libsdl is a library, I believe the solution is for libsdl to not specify any
application name when initiating a pulseaudio context, which will enable
applications to specify the application name using environment variables. In
the case that the applications do not specify anything, pulseaudio will fall
back to using the process name anyway.

The attached patch removes the get_progname() function and passes NULL as the
application name when creating the pulseaudio context, which fixes the issue.
2011-01-23 21:55:04 -08:00
acinclude Greg Jandl to SDL 2011-01-18 22:40:45 -08:00
android-project The window is changed to reflect the actual screen dimensions, for now. 2011-01-13 15:10:17 -08:00
build-scripts Updated the snapshot script for Mercurial 2011-01-18 14:21:10 -08:00
include Fixed bug #1097 2011-01-21 23:46:51 -08:00
src Fixed bug #1011 2011-01-23 21:55:04 -08:00
test Fixed bug #925 2011-01-20 18:04:05 -08:00
VisualC Fixed bug #925 2011-01-20 18:04:05 -08:00
VisualCE Removed outdated Dreamcast support 2009-09-19 07:21:22 +00:00
Xcode Fixed missing source files in static library target 2011-01-18 16:47:14 -08:00
Xcode-iPhoneOS Fixed building with the latest iOS SDK (4.2) 2011-01-18 17:23:44 -08:00
.DISABLED-hgeol Disable .hgeol for now...it doesn't work well at the moment. 2011-01-20 11:51:23 -05:00
.hgignore Merged Eli's Google Summer of Code work from SDL-gsoc2010-shaped_windows 2010-08-22 13:45:56 -07:00
.hgtags Tagging version before everything gets ripped out. 2010-05-09 17:00:56 -07:00
.indent.pro
Android.mk Updated the atomic API for better use cases 2011-01-15 12:41:59 -08:00
autogen.sh gcc can't generate dependencies for a file that doesn't exist, so first create SDL_revision.h 2009-10-11 06:42:20 +00:00
Borland.html
Borland.zip
BUGS
configure.in HAVE_GCC_ATOMICS covers the test and set 2011-01-21 21:45:55 -08:00
COPYING
CREDITS Removed outdated Atari support 2009-09-20 04:15:19 +00:00
INSTALL Added svn checkout install step 2009-12-14 23:43:57 +00:00
Makefile.ds First pass at Ryan's assertion code, minor tweaks to come. 2010-01-13 06:47:17 +00:00
Makefile.in Fixed bug #945 2011-01-21 12:43:25 -08:00
Makefile.minimal Initial work on power subsystem for SDL 1.3. 2009-06-07 06:06:35 +00:00
Makefile.pandora Hello Sam. 2010-06-17 22:23:20 -07:00
Makefile.wiz Scott to slouken 2009-11-17 04:53:15 +00:00
NOTES
README Removed outdated Atari support 2009-09-20 04:15:19 +00:00
README-SDL.txt
README.android Added information about starting a command shell on the device 2011-01-12 12:40:11 -08:00
README.BeOS
README.DirectFB Couriersud to Sam 2010-08-16 09:04:55 -07:00
README.gesture Fixed some typos in the documentation 2010-08-22 12:03:53 -07:00
README.HG Whitespace change in a README. 2011-01-22 03:57:27 -05:00
README.iphoneos Added README.touch and README.gesture. Moved touchtest/gestureSDLTest to test/testgesture 2010-08-15 00:36:28 -04:00
README.MacOSX
README.pandora OpenPandora support added by David Carré 2009-05-31 11:53:12 +00:00
README.Porting
README.QNX Removed references to CD-ROM support from the README files 2009-09-05 09:12:03 +00:00
README.RISCOS Removed references to CD-ROM support from the README files 2009-09-05 09:12:03 +00:00
README.touch Fixed some typos in the documentation 2010-08-22 12:03:53 -07:00
README.Watcom Fixed bug #818 2009-12-15 20:11:29 +00:00
README.WinCE
sdl-config.in
sdl.m4 Fixed bug 978 2010-04-23 02:19:34 -07:00
sdl.pc.in
SDL.spec.in Nobody has stepped up to maintain an svgalib driver. Bye bye! :) 2011-01-19 22:21:31 -08:00
TODO Working on Cocoa implementation. 2010-07-26 21:48:53 -04:00
UNDER_CONSTRUCTION.txt
VisualC.html
Watcom-Win32.zip Fixed bug #818 2009-12-15 20:11:29 +00:00
WhatsNew Clearing the API changes for the 1.3.0 release 2011-01-19 22:20:44 -08:00

                         Simple DirectMedia Layer

                                  (SDL)

                                Version 1.2

---
http://www.libsdl.org/

This is the Simple DirectMedia Layer, a general API that provides low
level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,
and 2D framebuffer across multiple platforms.

The current version supports Linux, Windows, Windows CE, BeOS, MacOS,
Mac OS X, FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX.
The code contains support for AIX, OSF/Tru64, RISC OS, and SymbianOS,
but these are not officially supported.

SDL is written in C, but works with C++ natively, and has bindings to
several other languages, including Ada, C#, Eiffel, Erlang, Euphoria,
Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP,
Pike, Pliant, Python, Ruby, and Smalltalk.

This library is distributed under GNU LGPL version 2, which can be
found in the file  "COPYING".  This license allows you to use SDL
freely in commercial programs as long as you link with the dynamic
library.

The best way to learn how to use SDL is to check out the header files in
the "include" subdirectory and the programs in the "test" subdirectory.
The header files and test programs are well commented and always up to date.
More documentation is available in HTML format in "docs/index.html", and
a documentation wiki is available online at:
	http://www.libsdl.org/cgi/docwiki.cgi

The test programs in the "test" subdirectory are in the public domain.

Frequently asked questions are answered online:
	http://www.libsdl.org/faq.php

If you need help with the library, or just want to discuss SDL related
issues, you can join the developers mailing list:
	http://www.libsdl.org/mailing-list.php

Enjoy!
	Sam Lantinga				(slouken@libsdl.org)