1. 28 Mar, 2005 1 kayıt (commit)
  2. 07 Mar, 2005 1 kayıt (commit)
  3. 11 May, 2004 1 kayıt (commit)
  4. 02 Haz, 2003 2 kayıt (commit)
  5. 29 May, 2003 3 kayıt (commit)
    • Greg Ward's avatar
      Comment fix. · 84f8ecd0
      Greg Ward yazdı
      84f8ecd0
    • Greg Ward's avatar
      Change _ssize() so it doesn't rely on sizeof(char) or sizeof(short): · 38c9266f
      Greg Ward yazdı
      8 bits is 1 byte, and that isn't about to change any time soon.  (I hope!)
      38c9266f
    • Greg Ward's avatar
      Completely change the interface to setparameters(): · d676906a
      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).
      d676906a
  6. 27 May, 2003 1 kayıt (commit)
  7. 26 May, 2003 1 kayıt (commit)
    • Greg Ward's avatar
      Release the GIL in two more methods: · b804390a
      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()
      b804390a
  8. 23 May, 2003 1 kayıt (commit)
  9. 04 Nis, 2003 1 kayıt (commit)
  10. 11 Mar, 2003 1 kayıt (commit)
  11. 10 Mar, 2003 1 kayıt (commit)
    • Greg Ward's avatar
      <sys/soundcard.h> seems to exist on both Linux and FreeBSD, so include · 0b6dfb80
      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.
      0b6dfb80
  12. 13 Şub, 2003 1 kayıt (commit)
  13. 02 Şub, 2003 1 kayıt (commit)
  14. 10 Ock, 2003 1 kayıt (commit)
  15. 31 Ara, 2002 5 kayıt (commit)
  16. 30 Ara, 2002 6 kayıt (commit)
  17. 12 Ara, 2002 1 kayıt (commit)
  18. 11 Ara, 2002 3 kayıt (commit)
  19. 30 Kas, 2002 5 kayıt (commit)
    • Greg Ward's avatar
    • Greg Ward's avatar
      Rename LinuxAudioError to OSSAudioError ('ossaudiodev.error'). · 97708bc6
      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.
      97708bc6
    • Greg Ward's avatar
      Added mode 'rw' for full-duplex (play and record at the same time) mode. · 1e0f57d0
      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.
      1e0f57d0
    • Greg Ward's avatar
      * Don't put the device in non-blocking mode at open() time; this makes · 131bce03
      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.
      131bce03
    • Greg Ward's avatar
      ossaudiodev -- Python interface to the OSS (Open Sound System) API. · 04613a93
      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.
      04613a93
  20. 27 Kas, 2002 1 kayıt (commit)
    • Greg Ward's avatar
      Allow the device name to be passed to linuxaudiodev.open(), for · a34b1a07
      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.
      a34b1a07
  21. 17 Tem, 2002 1 kayıt (commit)
    • Jeremy Hylton's avatar
      staticforward bites the dust. · 938ace69
      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.
      938ace69
  22. 27 Nis, 2002 1 kayıt (commit)
    • Tim Peters's avatar
      Repair widespread misuse of _PyString_Resize. Since it's clear people · 5de9842b
      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.
      5de9842b