Mercurial > sdl-ios-xcode
annotate TODO @ 5080:6d94060d16a9
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.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 23 Jan 2011 21:55:04 -0800 |
parents | d79939f20c45 |
children |
rev | line source |
---|---|
4788
0bfda420c936
Put in a couple of fixes that I realized hadn't gotten done when I wrote out the SCRUM stuff in TODO. Added SCRUM listings in TODO.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
3702
diff
changeset
|
1 Eli Gottlieb's checklist for the GSOC shaped windows project. Dated July 9, 2010. |
0bfda420c936
Put in a couple of fixes that I realized hadn't gotten done when I wrote out the SCRUM stuff in TODO. Added SCRUM listings in TODO.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
3702
diff
changeset
|
2 1. Enable proper linking of the X11 implementation and test it. |
4810
7a602fd2121f
OK, it appears that dramatic hacks are not necessary to make Cocoa work...
Eli Gottlieb <eligottlieb@gmail.com>
parents:
4788
diff
changeset
|
3 --> Find the place in the build system for platform-specific linking flags. STATUS: DONE |
7a602fd2121f
OK, it appears that dramatic hacks are not necessary to make Cocoa work...
Eli Gottlieb <eligottlieb@gmail.com>
parents:
4788
diff
changeset
|
4 --> Add a linker flag to bring in libXext.a. STATUS: DONE. |
4788
0bfda420c936
Put in a couple of fixes that I realized hadn't gotten done when I wrote out the SCRUM stuff in TODO. Added SCRUM listings in TODO.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
3702
diff
changeset
|
5 2. Build the Win32 implementation of shaped-windows functionality. |
0bfda420c936
Put in a couple of fixes that I realized hadn't gotten done when I wrote out the SCRUM stuff in TODO. Added SCRUM listings in TODO.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
3702
diff
changeset
|
6 --> Add driver functions to the SDL_ShapeDriver in the Win32 driver's SDL_DisplayDevice at the proper point in the code. STATUS: CHECK. |
0bfda420c936
Put in a couple of fixes that I realized hadn't gotten done when I wrote out the SCRUM stuff in TODO. Added SCRUM listings in TODO.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
3702
diff
changeset
|
7 --> Add a hook in the Windows resize-window code to call Win32_ResizeWindowShape(). STATUS: CHECK. |
4810
7a602fd2121f
OK, it appears that dramatic hacks are not necessary to make Cocoa work...
Eli Gottlieb <eligottlieb@gmail.com>
parents:
4788
diff
changeset
|
8 --> Get the Windows code to build and run properly. STATUS: IN PROGRESS. |
4788
0bfda420c936
Put in a couple of fixes that I realized hadn't gotten done when I wrote out the SCRUM stuff in TODO. Added SCRUM listings in TODO.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
3702
diff
changeset
|
9 3. Enable building the testeyes program. |
0bfda420c936
Put in a couple of fixes that I realized hadn't gotten done when I wrote out the SCRUM stuff in TODO. Added SCRUM listings in TODO.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
3702
diff
changeset
|
10 --> Reprogram it to use the latest shaped-windows API. STATUS: CHECK. |
4810
7a602fd2121f
OK, it appears that dramatic hacks are not necessary to make Cocoa work...
Eli Gottlieb <eligottlieb@gmail.com>
parents:
4788
diff
changeset
|
11 --> Get it, along with the rest of the test suite in my branch, building successfully. STATUS: DONE. |
7a602fd2121f
OK, it appears that dramatic hacks are not necessary to make Cocoa work...
Eli Gottlieb <eligottlieb@gmail.com>
parents:
4788
diff
changeset
|
12 --> Debug testeyes and the platform-specific shaped-window implementations in tandem. STATUS: IN PROGRESS. |
7a602fd2121f
OK, it appears that dramatic hacks are not necessary to make Cocoa work...
Eli Gottlieb <eligottlieb@gmail.com>
parents:
4788
diff
changeset
|
13 4. Implement the SDL shaped-windows API for Mac OS X using Cocoa. STATUS: IN PROGRESS |
7a602fd2121f
OK, it appears that dramatic hacks are not necessary to make Cocoa work...
Eli Gottlieb <eligottlieb@gmail.com>
parents:
4788
diff
changeset
|
14 --> Locate (once more) the API documentation for shaped windows under Cocoa. STATUS: NEARLY FINISHED. |
7a602fd2121f
OK, it appears that dramatic hacks are not necessary to make Cocoa work...
Eli Gottlieb <eligottlieb@gmail.com>
parents:
4788
diff
changeset
|
15 --> Design and encode a version of SDL_ShapeData for Cocoa. STATUS: IN PROGRESS. |
4811
d79939f20c45
Working on Cocoa implementation.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
4810
diff
changeset
|
16 --> Write Cocoa_CreateShaper(). STATUS: MOSTLY DONE, AFAIK. |
d79939f20c45
Working on Cocoa implementation.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
4810
diff
changeset
|
17 --> Write Cocoa_ResizeWindowShape(). STATUS: DONE, AFAIK. |
4810
7a602fd2121f
OK, it appears that dramatic hacks are not necessary to make Cocoa work...
Eli Gottlieb <eligottlieb@gmail.com>
parents:
4788
diff
changeset
|
18 --> Write Cocoa_SetWindowShape(). STATUS: IN PROGRESS. |
4788
0bfda420c936
Put in a couple of fixes that I realized hadn't gotten done when I wrote out the SCRUM stuff in TODO. Added SCRUM listings in TODO.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
3702
diff
changeset
|
19 --> If necessary, implement functionality adjunct to SDL_CalculateShapeBitmap() for Cocoa usage. |
0bfda420c936
Put in a couple of fixes that I realized hadn't gotten done when I wrote out the SCRUM stuff in TODO. Added SCRUM listings in TODO.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
3702
diff
changeset
|
20 5. Use testeyes to debug all implementations. STATUS: SPRINT + 2. |
0bfda420c936
Put in a couple of fixes that I realized hadn't gotten done when I wrote out the SCRUM stuff in TODO. Added SCRUM listings in TODO.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
3702
diff
changeset
|
21 --> Debug Cocoa implementation. |
0bfda420c936
Put in a couple of fixes that I realized hadn't gotten done when I wrote out the SCRUM stuff in TODO. Added SCRUM listings in TODO.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
3702
diff
changeset
|
22 --> Debug Win32 implementation. |
0bfda420c936
Put in a couple of fixes that I realized hadn't gotten done when I wrote out the SCRUM stuff in TODO. Added SCRUM listings in TODO.
Eli Gottlieb <eligottlieb@gmail.com>
parents:
3702
diff
changeset
|
23 --> Debug X11 implementation (again). |
2777
6f260584df22
Adding SDL 1.3 release checklist, so we start getting a list of must-have features and bug fixes for a 1.3 release
Sam Lantinga <slouken@libsdl.org>
parents:
2330
diff
changeset
|
24 |
6f260584df22
Adding SDL 1.3 release checklist, so we start getting a list of must-have features and bug fixes for a 1.3 release
Sam Lantinga <slouken@libsdl.org>
parents:
2330
diff
changeset
|
25 1.3 release checklist: |
3702
6604099437ac
Migrated most of the TODO list to the SDL 1.3 Roadmap wiki
Sam Lantinga <slouken@libsdl.org>
parents:
3690
diff
changeset
|
26 * http://wiki.libsdl.org/moin.cgi/Roadmap |
3563
d3a8bb6a37c1
Added notes from e-mail on desktop window implementation
Sam Lantinga <slouken@libsdl.org>
parents:
3562
diff
changeset
|
27 |
3544 | 28 * See why windows are being rearranged. Is the shield window not up? |
29 * Make sure you can create and show a fullscreen window in one step | |
30 * Figure out how to handle OpenGL context lost on Mac OS X (does it happen?) | |
3562
59ab35254459
Need to test the multi-draw APIs
Sam Lantinga <slouken@libsdl.org>
parents:
3544
diff
changeset
|
31 * Write automated test case for multi-draw APIs |
3595
b7c6828d4039
Make it possible to slim SDL down quite a bit for people who just want OpenGL
Sam Lantinga <slouken@libsdl.org>
parents:
3563
diff
changeset
|
32 * Make sure you can build SDL without the renderer to slim it down a bunch |
3690
e431b888ac6c
Fixed compilation on iPhone
Sam Lantinga <slouken@libsdl.org>
parents:
3632
diff
changeset
|
33 * Implement assertion code on iPhone |
e431b888ac6c
Fixed compilation on iPhone
Sam Lantinga <slouken@libsdl.org>
parents:
3632
diff
changeset
|
34 * Add __WINDOWS__ in addition to __WIN32__ |
3544 | 35 |
3632
da2a23b56493
Updated 1.2 revisions that need to be revisited
Sam Lantinga <slouken@libsdl.org>
parents:
3595
diff
changeset
|
36 * Check 1.2 revisions: |
da2a23b56493
Updated 1.2 revisions that need to be revisited
Sam Lantinga <slouken@libsdl.org>
parents:
3595
diff
changeset
|
37 3554 - Need to resolve semantics for locking keys on different platforms |
da2a23b56493
Updated 1.2 revisions that need to be revisited
Sam Lantinga <slouken@libsdl.org>
parents:
3595
diff
changeset
|
38 4874 - Do we want screen rotation? At what level? |
da2a23b56493
Updated 1.2 revisions that need to be revisited
Sam Lantinga <slouken@libsdl.org>
parents:
3595
diff
changeset
|
39 4974 - Windows file code needs to convert UTF-8 to Unicode, but we don't need to tap dance for Windows 95/98 |
da2a23b56493
Updated 1.2 revisions that need to be revisited
Sam Lantinga <slouken@libsdl.org>
parents:
3595
diff
changeset
|
40 4484, 4485 - Verify that SDL's Windows keyboard handling works correctly |
da2a23b56493
Updated 1.2 revisions that need to be revisited
Sam Lantinga <slouken@libsdl.org>
parents:
3595
diff
changeset
|
41 4865 - See if this is still needed (mouse coordinate clamping) |
da2a23b56493
Updated 1.2 revisions that need to be revisited
Sam Lantinga <slouken@libsdl.org>
parents:
3595
diff
changeset
|
42 4866 - See if this is still needed (blocking window repositioning) |