Mercurial > core / lisp/ffi/alsa/pkg.lisp
changeset 698: |
96958d3eb5b0 |
parent: |
7e3c88fff062
|
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Fri, 04 Oct 2024 22:04:59 -0400 |
permissions: |
-rw-r--r-- |
description: |
fixes |
1 ;;; alsa.lisp --- low-level bindings to ALSA 7 (:use :cl :std :sb-alien) 8 (:import-from :sb-unix :off-t) 13 (define-alien-loader "asound" t "/usr/lib/") 15 (defconstant %seek-set 0) 16 (defconstant %seek-cur 1) 17 (defconstant %seek-end 2) 19 (define-alien-type snd-pcm (* t)) 20 (define-alien-type snd-output (* t)) 22 (define-alien-type snd-pcm-stream int) 23 (define-alien-type snd-pcm-mode int) 25 (define-alien-routine snd-pcm-open int (pcm (* snd-pcm)) (name c-string) (ty snd-pcm-stream) (mode snd-pcm-mode)) 27 (define-alien-routine snd-pcm-close int (pcm snd-pcm)) 29 (define-alien-routine snd-strerror c-string (errnum int)) 32 (define-alien-type snd-pcm-format int) 34 (define-alien-type snd-pcm-access int) 36 (define-alien-routine snd-pcm-set-params int 38 (format snd-pcm-format) 39 (access snd-pcm-access) 40 (channels unsigned-int) 43 (latency unsigned-int)) 45 (define-alien-routine snd-pcm-recover int 50 (define-alien-type snd-pcm-sframes long) 51 (define-alien-type snd-pcm-uframes unsigned-long) 53 (define-alien-routine snd-pcm-writei snd-pcm-sframes 56 (size snd-pcm-uframes)) 58 (define-alien-routine snd-output-stdio-attach int 59 (outputp (* snd-output)) 63 (define-alien-routine snd-pcm-dump int 67 (define-alien-variable stdout (* t))