pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/csound The unofficial-csound package is no longe...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e850e482158e
branches: trunk
changeset: 464630:e850e482158e
user: ben <ben%pkgsrc.org@localhost>
date: Sat Dec 13 20:18:25 2003 +0000
description:
The unofficial-csound package is no longer being developed. I plan to add
csound-dev as a more up-to-date replacement.
diffstat:
audio/csound/DESCR | 8 -
audio/csound/Makefile | 27 ---
audio/csound/PLIST | 37 -----
audio/csound/distinfo | 26 ---
audio/csound/files/rtNetBSD.c | 309 ------------------------------------------
audio/csound/files/rtNetBSD.h | 20 --
audio/csound/patches/patch-aa | 13 -
audio/csound/patches/patch-ab | 107 --------------
audio/csound/patches/patch-ac | 13 -
audio/csound/patches/patch-ad | 10 -
audio/csound/patches/patch-ae | 69 ---------
audio/csound/patches/patch-af | 54 -------
audio/csound/patches/patch-ag | 13 -
audio/csound/patches/patch-ah | 84 -----------
audio/csound/patches/patch-ai | 13 -
audio/csound/patches/patch-aj | 13 -
audio/csound/patches/patch-ak | 50 ------
audio/csound/patches/patch-an | 13 -
audio/csound/patches/patch-ao | 161 ---------------------
audio/csound/patches/patch-ap | 13 -
audio/csound/patches/patch-aq | 14 -
audio/csound/patches/patch-ar | 13 -
audio/csound/patches/patch-as | 22 --
audio/csound/patches/patch-at | 30 ----
audio/csound/patches/patch-au | 13 -
audio/csound/patches/patch-av | 19 --
audio/csound/patches/patch-aw | 43 -----
audio/csound/patches/patch-ax | 101 -------------
28 files changed, 0 insertions(+), 1308 deletions(-)
diffs (truncated from 1420 to 300 lines):
diff -r f8580f573a85 -r e850e482158e audio/csound/DESCR
--- a/audio/csound/DESCR Sat Dec 13 20:14:26 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-Csound is a software synthesis package in the tradition of so-called
-music-N languages, among which the best-known is Music V. It consists
-of an orchestra- and score-driven executable, written in C for
-portability. Since Csound is a computational language, it is highly
-flexible and efficient; complexity is gained only at the expense of
-computation time. Basically Csound reads some files and creates the
-result as a file on disk or, on faster machines, through a DAC in real
-time.
diff -r f8580f573a85 -r e850e482158e audio/csound/Makefile
--- a/audio/csound/Makefile Sat Dec 13 20:14:26 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-# $NetBSD: Makefile,v 1.11 2003/07/22 05:14:43 martti Exp $
-#
-
-DISTNAME= unofficial-csound-4.13.0.2a-linux.src
-PKGNAME= csound-4.13.0.2a
-CATEGORIES= audio
-MASTER_SITES= ftp://mustec.bgsu.edu/pub/linux/
-
-MAINTAINER= collver1%comcast.net@localhost
-HOMEPAGE= http://www.csound.org/
-COMMENT= Software synthesizer and sequencer
-
-LICENSE= csound-license
-RESTRICTED= "no for-fee-redistribution"
-NO_SRC_ON_CDROM= ${RESTRICTED}
-NO_BIN_ON_CDROM= ${RESTRICTED}
-
-DIST_SUBDIR= csound
-USE_GMAKE= yes
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --without-x --enable-rtaudio=netbsd
-CONFLICTS= csound-bath*
-
-pre-configure:
- ${CP} ${FILESDIR}/rtNetBSD.h ${FILESDIR}/rtNetBSD.c ${WRKSRC}/new-src/
-
-.include "../../mk/bsd.pkg.mk"
diff -r f8580f573a85 -r e850e482158e audio/csound/PLIST
--- a/audio/csound/PLIST Sat Dec 13 20:14:26 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-@comment $NetBSD: PLIST,v 1.2 2002/03/23 02:36:45 wiz Exp $
-bin/csound
-bin/cvanal
-bin/dnoise
-bin/envelope
-bin/extract
-bin/extractor
-bin/het_export
-bin/het_import
-bin/hetro
-bin/lpanal
-bin/lpc_export
-bin/mixer
-bin/pv_export
-bin/pv_import
-bin/pvanal
-bin/pvlook
-bin/scale
-bin/scot
-bin/scsort
-bin/sndinfo
-bin/srconv
-include/cscore.h
-include/dsputil.h
-include/fft.h
-include/lpc.h
-include/pvoc.h
-include/sfheader.h
-include/sysdep.h
-lib/libcscore.so
-lib/libcscore.so.4
-lib/libcscore.so.4.13.0.2a
-lib/libcsound.so
-lib/libcsound.so.4
-lib/libcsound.so.4.13.0.2a
-share/csound/csound.txt
-@dirrm share/csound
diff -r f8580f573a85 -r e850e482158e audio/csound/distinfo
--- a/audio/csound/distinfo Sat Dec 13 20:14:26 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-$NetBSD: distinfo,v 1.7 2003/12/04 00:34:06 kristerw Exp $
-
-SHA1 (csound/unofficial-csound-4.13.0.2a-linux.src.tar.gz) = 4c329ff4148a775fba9af7e39ce6ba59912d809c
-Size (csound/unofficial-csound-4.13.0.2a-linux.src.tar.gz) = 1076545 bytes
-SHA1 (patch-aa) = 4a3a50375d301d3c8ec5c3a6037ed573dfbb2e79
-SHA1 (patch-ab) = 35e90d6265b2b7e2b51a0ab1b32ce81202952f5a
-SHA1 (patch-ac) = 3d99734ab4e7324fc5339530e2f0a326ff963c91
-SHA1 (patch-ad) = cd4c34a1ced10383c456cf409f053c366092d7ae
-SHA1 (patch-ae) = e3755458138c0905068ea8f084fe06a4b74ae815
-SHA1 (patch-af) = 4f330a2468fe0a0b97c19076a7f682f6319cc198
-SHA1 (patch-ag) = 6cc2cf7c1ac03a5a44ecdefeb7fb43c87f4f2529
-SHA1 (patch-ah) = 379b41165b1ff39e5021f80809a9ab2e7db66668
-SHA1 (patch-ai) = a50611b09c6dbd481ee47ff90bf101058cbcbc19
-SHA1 (patch-aj) = 2d18cf881d09e447969a623c88866c0624b19990
-SHA1 (patch-ak) = eef2e5bf815a0359ca9c5474a26c8da038c5da0a
-SHA1 (patch-an) = 29c786bdfbed4b1ae022b8dfdf4fa17409fbd9c9
-SHA1 (patch-ao) = 4b2dbffc454127035a84193f0047b5fd87c19c98
-SHA1 (patch-ap) = a9bec9f3f85295544c8dca5c6e5fb8407e018764
-SHA1 (patch-aq) = 1cbcf5bf584a1cd2510a6feeba4ab0124334b05b
-SHA1 (patch-ar) = 853370ab5104e116d44fd36f4c7552992603ce12
-SHA1 (patch-as) = 41a3409f389bd146ff9a21d0b983a7ec2e2ff4b6
-SHA1 (patch-at) = 4d545c4fabcb5cf6211a0f00ea2ea983adb83cd7
-SHA1 (patch-au) = bf1d88e516b9d09d1ea6c6c87101654a30ba98fa
-SHA1 (patch-av) = 194dc38b80780a5626fb2b5262fa2b56d68d337e
-SHA1 (patch-aw) = 0444633e551c5dd293be377477a748fd48744cd5
-SHA1 (patch-ax) = 0333e4289152d8f80b1967ee6331ca697b1729b9
diff -r f8580f573a85 -r e850e482158e audio/csound/files/rtNetBSD.c
--- a/audio/csound/files/rtNetBSD.c Sat Dec 13 20:14:26 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,309 +0,0 @@
-/*
- --- rtNetBSD.c ---
-
- Native NetBSD audio support.
-
- Ben Collver, collver%linuxfreemail.com@localhost
-*/
-
-#include <sys/types.h>
-#include <sys/audioio.h>
-#include <sys/ioctl.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <unistd.h>
-
-#include "cs.h"
-#include "soundio.h"
-#include "rtNetBSD.h"
-
-static int dspfd;
-
-static int ishift = 0, oshift = 0, oMaxLag;
-extern long nrecs;
- long inrecs;
-extern OPARMS O;
-extern int Linefd;
-#ifdef PIPES
-extern FILE* Linepipe;
-# define _pclose pclose
-#endif
-
-static int getshift(int dsize) /* turn sample- or frame-size into shiftsize */
-{
- switch(dsize) {
- case 1: return(0);
- case 2: return(1);
- case 4: return(2);
- case 8: return(3);
- default: die("rtaudio: illegal dsize");
- return(-1); /* Not reached */
- }
-}
-
-
-void display_audio_info(
- int fd,
- const char *message,
- audio_info_t *info)
-{
- audio_encoding_t encoding;
- char *encoding_name;
-
- encoding.index = info->play.encoding;
- if (ioctl(fd, AUDIO_GETENC, &encoding) == -1) {
- asprintf(&encoding_name, "%d", info->play.encoding);
- } else {
- encoding_name = strdup(encoding.name);
- }
- printf("%-9s\n", message);
- printf(" info.play.precision = %d\n", info->play.precision);
- printf(" info.play.encoding = %s\n", encoding_name);
- printf(" info.play.channels = %d\n", info->play.channels);
- printf(" info.play.sample_rate = %d\n", info->play.sample_rate);
- printf(" info.blocksize = %d\n\n", info->blocksize);
- free(encoding_name);
-}
-
-void setsndparms(
- int fd,
- int format,
- int nchnls,
- MYFLT esr,
- unsigned bufsiz)
-{
- audio_info_t info;
- int count;
- int frag_size;
-
- AUDIO_INITINFO(&info);
-
- switch (format) {
- case AE_UNCH:
- info.play.precision = 8;
- info.play.encoding = AUDIO_ENCODING_ULINEAR;
- break;
- case AE_CHAR:
- info.play.precision = 8;
- info.play.encoding = AUDIO_ENCODING_SLINEAR;
- break;
- case AE_ULAW:
- info.play.precision = 8;
- info.play.encoding = AUDIO_ENCODING_ULAW;
- break;
- case AE_ALAW:
- info.play.precision = 8;
- info.play.encoding = AUDIO_ENCODING_ALAW;
- break;
- case AE_SHORT:
- /* audio(4) says AUDIO_ENCODING_SLINEAR uses platform's
- byte order, so the below will automatically be BE on
- a BE system, and LE on a LE system. Good/Bad/Ok? */
-
- info.play.precision = 16;
- info.play.encoding = AUDIO_ENCODING_SLINEAR;
- break;
- case AE_LONG:
- info.play.precision = 32;
- info.play.encoding = AUDIO_ENCODING_SLINEAR;
- break;
- case AE_FLOAT:
- die("NetBSD audio does not support floating-point samples");
- default:
- die("unknown sample format");
- }
-
- info.play.channels = nchnls;
- info.play.sample_rate = (unsigned int) esr;
-
- /* set DMA buffer fragment size to Csound's output buffer size */
- /*
- * The or'ing is ABSOLUTELY crucial to obtaining quick response
- * of csound to MIDI input - Please don't touch this line unless
- * you know you can do better (in terms of MIDI response)
- * [nicb%axnet.it@localhost]
- */
- frag_size = 16;
- count = 4;
- while (frag_size < bufsiz && count < 18) {
- frag_size <<= 1;
- count++;
- }
- count |= 0x0020000; /* Larry Troxler's Idea */
- info.blocksize = frag_size;
-
- /* from ossaudio.c ioctl SNDCTL_DSP_SETFRAGMENT */
- info.hiwat = ((unsigned)count >> 16) & 0x7fff;
- if (info.hiwat == 0)
- info.hiwat = 65536;
-
- if (ioctl(fd, AUDIO_SETINFO, &info) == -1) {
- display_audio_info(fd, "requested", &info);
- if (ioctl(fd, AUDIO_GETINFO, &info) != -1)
- display_audio_info(fd, "got", &info);
- die("unable to configure soundcard");
- }
-}
-
-int find_mixer_label(int fd, int class, const char *name)
-{
- int i;
- int mclass;
- int retval = -1;
- mixer_devinfo_t info;
-
- for (i = 0; ; i++) {
- info.index = i;
- if (ioctl(fd, AUDIO_MIXER_DEVINFO, &info) < 0)
- break;
- mclass = info.mixer_class;
- if ((info.index == mclass || class == mclass) &&
- !strcmp(info.label.name, name))
- {
- retval = i;
- }
- }
- return retval;
-}
-
-void setvolume(unsigned volume)
-{
- int fd;
- int i;
- int output_class;
- int vol_output;
- mixer_devinfo_t info;
- mixer_ctrl_t value;
-
- /* volume must be between 0 and 255 */
-
- if ((fd = open(NETBSD_MIXER, O_WRONLY)) == -1)
- die("unable to open soundcard mixer for setting volume");
-
Home |
Main Index |
Thread Index |
Old Index