- 28 Mar, 2005 1 kayıt (commit)
-
-
Greg Ward yazdı
AFMT_S32_BE, AFMT_MPEG.
-
- 07 Mar, 2005 1 kayıt (commit)
-
-
Greg Ward yazdı
attributes to oss_audio_device object: 'closed', 'name', and 'mode'.
-
- 11 May, 2004 1 kayıt (commit)
-
-
Greg Ward yazdı
_EXPORT_INT calls in #ifdef's, to avoid breaking the build on MkLinux (Linux 2.0).
-
- 02 Haz, 2003 2 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
build (assert(gc->gc.gc_refs != 0) in visit_decref()). Because OSSAudioError is a global, we must compensate (twice!) for PyModule_AddObject()'s "helpful" decref of the object it adds.
-
- 29 May, 2003 3 kayıt (commit)
-
-
Greg Ward yazdı
-
Greg Ward yazdı
8 bits is 1 byte, and that isn't about to change any time soon. (I hope!)
-
Greg Ward yazdı
* it no longer takes ssize, which served no purpose apart from scolding you if you got it wrong * changed the order of the three remaining required arguments to (format, channels, rate) to match the order in which they must be set * replaced the optional argument 'emulate' with 'strict': if strict true, and the audio device does not accept the requested sampling parameters, raise OSSAudioError * return a tuple (format, channels, rate) reflecting the sampling parameters that were actually set Change the canonical name of ossaudiodev.error to ossaudiodev.OSSAudioError (keep an alias for backwards compatibility). Remove 'audio_types' list and 'n_audio_types' (no longer needed now that setparameters() no longer has an 'ssize' argument to police).
-
- 27 May, 2003 1 kayıt (commit)
-
-
Greg Ward yazdı
that way it applies to *only* the ioctl() call, and also happens for the other blocking ioctls (POST, RESET).
-
- 26 May, 2003 1 kayıt (commit)
-
-
Greg Ward yazdı
* sync(), because it waits for hardware buffers to flush, which can take several seconds depending on cirumstances (according to the OSS docs) * close(), because it does an implicit sync()
-
- 23 May, 2003 1 kayıt (commit)
-
-
Greg Ward yazdı
Bug spotted by Joerg Lehmann <joerg@luga.de>.
-
- 04 Nis, 2003 1 kayıt (commit)
-
-
Greg Ward yazdı
opening it in non-blocking mode. Both Guido and David Hammerton have reported that this fixes their problems with ossaudiodev -- hooray!
-
- 11 Mar, 2003 1 kayıt (commit)
-
-
Greg Ward yazdı
-
- 10 Mar, 2003 1 kayıt (commit)
-
-
Greg Ward yazdı
it instead of the OS-specific <linux/soundcard.h> or <machine/soundcard.h>. Mixers devices have an ioctl-only interface, no read/write -- so the flags passed to open() don't really matter. Thus, drop the 'mode' parameter to openmixer() (ie. second arg to newossmixerobject()) and always open mixers with O_RDWR.
-
- 13 Şub, 2003 1 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
-
- 02 Şub, 2003 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 10 Ock, 2003 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 31 Ara, 2002 5 kayıt (commit)
-
-
Greg Ward yazdı
SOUND_DEVICE_NAMES as 'control_labels' and 'control_names'.
-
Greg Ward yazdı
what it is.
-
Greg Ward yazdı
OSSType to OSSAudioType.
-
Greg Ward yazdı
-
Greg Ward yazdı
devices(), stereodevices(), recdevices() -> controls(), stereocontrols(), reccontrols() Based on recommendation of Hannu Savolainen <hannu@opensound.com>: The right term to use for things like bass/treble/mic/vol/etc is "control". "Device" refers to different mixer devices (/dev/mixer0 to /dev/mixerN). "Channel" cannot be used because it refers to mono/stereo/multich channels. In fact most mixer controls have left/right channels so ...
-
- 30 Ara, 2002 6 kayıt (commit)
-
-
Greg Ward yazdı
setrecsrc() -> set_recsrc().
-
Greg Ward yazdı
-
Greg Ward yazdı
-
Greg Ward yazdı
-
Greg Ward yazdı
* channels() -> devices() * stereochannels() -> stereodevices() * recchannels() -> recdevices() * getvol() -> get() * setvol() -> set() This is for (slightly) more consistency with the OSS ioctl names (READ_DEVMASK, READ_RECMASK, READ_STEREODEVS). Also make sure the C function names correspond more closely to the Python method names for mixer methods.
-
Greg Ward yazdı
(It added nothing, and served no obvious purpose.) Export SOUND_MIXER_NRDEVICES constant.
-
- 12 Ara, 2002 1 kayıt (commit)
-
-
Greg Ward yazdı
-
- 11 Ara, 2002 3 kayıt (commit)
-
-
Greg Ward yazdı
* add oss_mixer_t and OSSMixerType * add newossmixerobject(), oss_mixer_dealloc(), ossopenmixer() * add _do_ioctl_1_internal() to support mixer ioctls * add mixer methods: oss_mixer_{close,fileno,channels,stereo_channels, rec_channels,getvol,setvol,getrecsrc,setrecsrc}() * add oss_mixer_methods list * add oss_mixer_getattr() (why?!) * export SOUND_MIXER_* constants from soundcard.h
-
Greg Ward yazdı
_do_ioctl_1() so they take a file descriptor rather than an oss_t pointer.
-
Greg Ward yazdı
* rename oss_t to lad_t, Ladtype to OSSType, * rename lad_*() methods to oss_*() * rename lad_methods list to oss_methods Patch and impetus supplied by Nicholas FitzRoy-Dale <wzdd@lardcave.net>.
-
- 30 Kas, 2002 5 kayıt (commit)
-
-
Greg Ward yazdı
-
Greg Ward yazdı
Use OSSAudioError much less frequently -- all real I/O errors (ie. any time open(), read(), write(), ioctl(), or select() return an error) become IOError. OSSAudioError is only used now for bad open() mode.
-
Greg Ward yazdı
Added _EXPORT_INT macro to export an integer constant to Python-space. Use it for all the AFMT_* constants, and update the list of AFMT_* constants to match what's in Linux 2.4: add AFMT_{QUERY,IMA_ADPCM, MPEG,AC3}. This should probably be tested with older versions of OSS, eg. with Linux 2.2 and 2.0. Export all SNDCTL_* ioctl numbers (where "all" is the set found in /usr/include/linux/soundcard.h on my Debian 3.0 system -- again Linux 2.4). Again needs to be tested with older OSS versions.
-
Greg Ward yazdı
it impossible to access blocking mode! * Rename write() to writeall(), and add a write() method that just does one write(). * Rearrange/simplify writeall(): in particular, don't supply a timeout to select(). Let it block forever if it has to. * Add a bunch of simple ioctl() wrappers: nonblock(), setfmt(), getfmts(), channels(), speed(), sync(), reset(), post(). These wrap, respectively, SNDCTL_DSP_NONBLOCK, SNDCTL_DSP_SETFMT, SNDCTL_DSP_GETFMTS, etc. * Reduce flush() (which was a wrapper for the SNDCTL_DSP_SYNC ioctl) to an alias for sync(). * Rearrange the lad_methods list to reflect the order in which the methods are defined, and add some grouping comments.
-
Greg Ward yazdı
This module is a replacement for linuxaudiodev, which will eventually be deprecated. Initial revision is rev 2.20 of linuxaudiodev.c, with a rewritten header comment.
-
- 27 Kas, 2002 1 kayıt (commit)
-
-
Greg Ward yazdı
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.
-
- 17 Tem, 2002 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
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.
-
- 27 Nis, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
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(&s, n) < 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(&s, n) < 0) goto outtahere; Bugfix candidate.
-