1. 03 Dec, 2002 17 commits
  2. 02 Dec, 2002 14 commits
  3. 01 Dec, 2002 3 commits
  4. 30 Nov, 2002 6 commits
    • Greg Ward's avatar
    • Greg Ward's avatar
      Rename LinuxAudioError to OSSAudioError ('ossaudiodev.error'). · 230163cc
      Greg Ward authored
      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.
      230163cc
    • Greg Ward's avatar
      Added mode 'rw' for full-duplex (play and record at the same time) mode. · 569c3e9f
      Greg Ward authored
      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.
      569c3e9f
    • Greg Ward's avatar
      * Don't put the device in non-blocking mode at open() time; this makes · c92f913a
      Greg Ward authored
        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.
      c92f913a
    • Greg Ward's avatar
      ossaudiodev -- Python interface to the OSS (Open Sound System) API. · 5ab870d4
      Greg Ward authored
      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.
      5ab870d4
    • Just van Rossum's avatar
      - found a case where sys.path[0] isn't set to Contents/Resources, · 1d7bf85a
      Just van Rossum authored
        so search the entire path.
      - only add modules if we're building a standalone application.
      1d7bf85a