<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/linuxaudiodev.c, branch 2.4</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/linuxaudiodev.c?h=2.4</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/linuxaudiodev.c?h=2.4'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-10-04T10:23:57Z</updated>
<entry>
<title>Compilation problem caused by conflicting typedefs for uint32_t</title>
<updated>2006-10-04T10:23:57Z</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2006-10-04T10:23:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=baab23ec364e8a850db931a2bfef31c3b9c9a5ae'/>
<id>urn:sha1:baab23ec364e8a850db931a2bfef31c3b9c9a5ae</id>
<content type='text'>
(unsigned long vs. unsigned int).
</content>
</entry>
<entry>
<title>[Backport of rev. 42093 by neal.norwitz]</title>
<updated>2006-09-27T19:17:32Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-09-27T19:17:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e7031223e36c43ccd47321b3ff8997c1423e2b9c'/>
<id>urn:sha1:e7031223e36c43ccd47321b3ff8997c1423e2b9c</id>
<content type='text'>
Check return result from Py_InitModule*().  This API can fail.

Probably should be backported.
</content>
</entry>
<entry>
<title>Allow the device name to be passed to linuxaudiodev.open(), for</title>
<updated>2002-11-27T22:19:15Z</updated>
<author>
<name>Greg Ward</name>
<email>gward@python.net</email>
</author>
<published>2002-11-27T22:19:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a34b1a074929c1ca1b8458bd26563b2385a1fe6b'/>
<id>urn:sha1:a34b1a074929c1ca1b8458bd26563b2385a1fe6b</id>
<content type='text'>
consistency with the built-in open() (and every other sane open()
function, for that matter).  The two valid ways to call this open() are
now open(mode) and open(device, mode).

For backwards compatibility, retain the old open(mode) calling syntax --
this makes the error message when you call open(device) a bit confusing,
but oh well.

This is the first half of SF patch #644977.
</content>
</entry>
<entry>
<title>staticforward bites the dust.</title>
<updated>2002-07-17T16:30:39Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2002-07-17T16:30:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=938ace69a0e112424a2f426a4881d1fd1fc922d2'/>
<id>urn:sha1:938ace69a0e112424a2f426a4881d1fd1fc922d2</id>
<content type='text'>
The staticforward define was needed to support certain broken C
compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the
static keyword when it was used with a forward declaration of a static
initialized structure.  Standard C allows the forward declaration with
static, and we've decided to stop catering to broken C compilers.  (In
fact, we expect that the compilers are all fixed eight years later.)

I'm leaving staticforward and statichere defined in object.h as
static.  This is only for backwards compatibility with C extensions
that might still use it.

XXX I haven't updated the documentation.
</content>
</entry>
<entry>
<title>Repair widespread misuse of _PyString_Resize.  Since it's clear people</title>
<updated>2002-04-27T18:44:32Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-04-27T18:44:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5de9842b34cbefbfe74e6a99004616352f223133'/>
<id>urn:sha1:5de9842b34cbefbfe74e6a99004616352f223133</id>
<content type='text'>
don't understand how this function works, also beefed up the docs.  The
most common usage error is of this form (often spread out across gotos):

	if (_PyString_Resize(&amp;s, n) &lt; 0) {
		Py_DECREF(s);
		s = NULL;
		goto outtahere;
	}

The error is that if _PyString_Resize runs out of memory, it automatically
decrefs the input string object s (which also deallocates it, since its
refcount must be 1 upon entry), and sets s to NULL.  So if the "if"
branch ever triggers, it's an error to call Py_DECREF(s):  s is already
NULL!  A correct way to write the above is the simpler (and intended)

	if (_PyString_Resize(&amp;s, n) &lt; 0)
		goto outtahere;

Bugfix candidate.
</content>
</entry>
<entry>
<title>Include &lt;unistd.h&gt; in Python.h. Fixes #500924.</title>
<updated>2002-01-12T11:05:12Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-01-12T11:05:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cdc445122208cb90a59a468a7396b227e223c43a'/>
<id>urn:sha1:cdc445122208cb90a59a468a7396b227e223c43a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Patch supplied by Burton Radons for his own SF bug #487390: Modifying</title>
<updated>2001-12-08T18:02:58Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-08T18:02:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=146483964e2e94b0d1709be438a1b86f75b5d730'/>
<id>urn:sha1:146483964e2e94b0d1709be438a1b86f75b5d730</id>
<content type='text'>
type.__module__ behavior.

This adds the module name and a dot in front of the type name in every
type object initializer, except for built-in types (and those that
already had this).  Note that it touches lots of Mac modules -- I have
no way to test these but the changes look right.  Apologies if they're
not.  This also touches the weakref docs, which contains a sample type
object initializer.  It also touches the mmap test output, because the
mmap type's repr is included in that output.  It touches object.h to
put the correct description in a comment.
</content>
</entry>
<entry>
<title>SF patch #489989 (Charles G Waldman) linuxaudiodev.c - fix initialization</title>
<updated>2001-12-08T17:13:45Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-08T17:13:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7745218c051706336e4adab4d33863dde2a38d6c'/>
<id>urn:sha1:7745218c051706336e4adab4d33863dde2a38d6c</id>
<content type='text'>
The OSS Programmer's Reference (www.4front-tech.com)
states:

*Setting Sampling Parameters

There are three parameters which affect the sound
quality (and therefore memory and bandwidth
requirements) of sampled audio data. These are:

** sample format (sometimes called number of bits)
** number of channels (mono or stereo), and
** sampling rate (speed)

NOTE:

It is important to always set these parameters in the
above order. Setting sampling rate before the number
of channels doesn't work with all devices.
</content>
</entry>
<entry>
<title>Applying SF patch #412553 by Christopher Lee: fix linuxaudiodev</title>
<updated>2001-04-02T17:59:02Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-04-02T17:59:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f5bd6843377a4f4433700282f5c4bddb3d6333ae'/>
<id>urn:sha1:f5bd6843377a4f4433700282f5c4bddb3d6333ae</id>
<content type='text'>
handling of EAGAIN.

This may or may not fix the problem for me (Mandrake 7.2 on a Dell
Optiplex GX110 desktop): I can't hear the output, but it does pass the
test now.  It doesn't fix the problem for Fred (Mandrake 7.2 on a Dell
Inspiron 7500 which has the Maestro sound drivers).  Fred suspects
that it's the kernel version in combination with the driver.
</content>
</entry>
<entry>
<title>Restore lost AFMT_S16_NE entry.</title>
<updated>2001-01-17T19:31:29Z</updated>
<author>
<name>Ka-Ping Yee</name>
<email>ping@zesty.ca</email>
</author>
<published>2001-01-17T19:31:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7dfe6e3264cb81e3b0b7801042ef9a3cdfa9b25e'/>
<id>urn:sha1:7dfe6e3264cb81e3b0b7801042ef9a3cdfa9b25e</id>
<content type='text'>
</content>
</entry>
</feed>
