Commit graph

29 commits

Author SHA1 Message Date
nia
cdc65e0dda portaudio: Fix a floating point exception preventing Audacity from
starting on NetBSD under some circumstances.
2022-06-14 14:18:45 +00:00
nia
db187df25e audio: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes.

The following distfiles couldn't be fetched (possibly they are fetched
conditionally):

./audio/freeswitch-sounds-ru/distinfo freeswitch/freeswitch-sounds-ru-RU-elena-32000-1.0.13.tar.gz
./audio/freeswitch-sounds-ru/distinfo freeswitch/freeswitch-sounds-ru-RU-elena-48000-1.0.13.tar.gz
./audio/freeswitch-music/distinfo freeswitch/freeswitch-sounds-music-32000-1.0.8.tar.gz
./audio/freeswitch-music/distinfo freeswitch/freeswitch-sounds-music-48000-1.0.8.tar.gz
./audio/freeswitch-sounds-fr/distinfo freeswitch/freeswitch-sounds-fr-ca-june-32000-1.0.18.tar.gz
./audio/freeswitch-sounds-fr/distinfo freeswitch/freeswitch-sounds-fr-ca-june-48000-1.0.18.tar.gz
./audio/freeswitch-sounds-en/distinfo freeswitch/freeswitch-sounds-en-us-callie-32000-1.0.22.tar.gz
./audio/freeswitch-sounds-en/distinfo freeswitch/freeswitch-sounds-en-us-callie-48000-1.0.22.tar.gz
2021-10-26 09:58:44 +00:00
nia
274d042d75 audio: Remove SHA1 hashes for distfiles 2021-10-07 13:09:09 +00:00
nia
1028dde167 portaudio: Fix playing very short files in Audacity with Sun backend
According to portaudio's own docs, my previous code was correct -
aborting the stream should cause any queued samples to be dropped.
However, audacity seems to be abusing the portaudio API and calling
Abort immediately once it's finished processing the output...
2021-09-09 21:41:59 +00:00
reinoud
83ebf98bc5 Fix Sun/NetBSD audio support. uaudio(4) record-only audio devices would not
allow to be opened write-only and the logic would then skip to the next
device.
2021-01-16 21:06:52 +00:00
nia
00b5b60c9d portaudio: Fix build on SunOS 2020-04-25 10:18:09 +00:00
nia
3d289a05b0 portaudio: Fix detection of sun 2020-04-25 09:41:31 +00:00
nia
86ee769ac9 portaudio: Add a Sun/NetBSD audio backend. This works with Audacity.
While here, generally clean up the package...

Bump PKGREVISION
2020-04-17 15:50:03 +00:00
nia
869c35d13f portaudio: In the OSS hostapi, support additional sample formats.
While here, adjust some hacks around differences between NetBSD ossaudio
and OSSv4:

It turns out the problem was Audacity attempting to initialize with
an absurdly high sample rate. When a sample rate that's outside the
range of the kernel's maximum of 192000 is passed to SNDCTL_DSP_SPEED,
-1 was returned (until my commits today).

This is a violation of the OSSv4 spec in NetBSD. The spec states that if
an unsupported sample rate is requested, a supported one should be picked
and returned.
2020-04-15 17:12:14 +00:00
nia
c401094e91 portaudio: Fix recording with the OSS backend on NetBSD.
This is trying to open /dev/audioX in non-blocking mode and poll() it.

This basically never works as expected, and is especially pointless with
the short reads PortAudio is doing. So don't do it.

It is also asserting some values to be returned from ioctls which the
emulation layer doesn't provide. This is also nearly entirely pointless,
so don't do it.

Recording now works in audacity.

Bump portaudio's PKGREVISION.
2019-11-24 13:15:15 +00:00
nia
3d775d2c8b portaudio: Add missing patch + debug option. 2019-10-28 15:32:24 +00:00
nia
62f5915c03 audio: Allow audacity to use the system's portaudio.
This should make it easier to diagnose and fix recording problems later.
Probably.
2019-10-26 17:22:07 +00:00
nia
73b4b64fae Rename audio/portaudio-devel to audio/portaudio 2019-10-20 11:10:47 +00:00
nia
8eb77f47b5 Remove audio/portaudio, replacement audio/portaudio-devel.
This is v18 of the library. portaudio-devel is v19.
v19's initial release was in 2007, this was last updated in 2003.

Nothing is using this now.
2019-07-21 23:08:22 +00:00
wiz
48c2f68cf6 portaudio: honor LDFLAGS. Fixes RELRO build.
Bump PKGREVISION.
2018-02-28 21:46:51 +00:00
agc
b734eb2ebf Add SHA512 digests for distfiles for audio category
Problems found with existing distfiles:
	/pub/pkgsrc/distfiles/amp-0.7.6.tgz
	/pub/pkgsrc/distfiles/freeswitch/freeswitch-sounds-music-32000-1.0.8.tar.gz
	/pub/pkgsrc/distfiles/freeswitch/freeswitch-sounds-music-48000-1.0.8.tar.gz
	/pub/pkgsrc/distfiles/freeswitch/freeswitch-sounds-en-us-callie-32000-1.0.22.tar.gz
	/pub/pkgsrc/distfiles/freeswitch/freeswitch-sounds-en-us-callie-48000-1.0.22.tar.gz
	/pub/pkgsrc/distfiles/freeswitch/freeswitch-sounds-fr-ca-june-32000-1.0.18.tar.gz
	/pub/pkgsrc/distfiles/freeswitch/freeswitch-sounds-fr-ca-june-48000-1.0.18.tar.gz
	/pub/pkgsrc/distfiles/freeswitch/freeswitch-sounds-ru-RU-elena-16000-1.0.12.tar.gz
	/pub/pkgsrc/distfiles/freeswitch/freeswitch-sounds-ru-RU-elena-32000-1.0.12.tar.gz
	/pub/pkgsrc/distfiles/freeswitch/freeswitch-sounds-ru-RU-elena-48000-1.0.12.tar.gz
	/pub/pkgsrc/distfiles/freeswitch/freeswitch-sounds-ru-RU-elena-8000-1.0.12.tar.gz
	/pub/pkgsrc/distfiles/freeswitch/freeswitch-sounds-fr-ca-june-32000-1.0.18.tar.gz
	/pub/pkgsrc/distfiles/freeswitch/freeswitch-sounds-fr-ca-june-48000-1.0.18.tar.gz
	/pub/pkgsrc/distfiles/freeswitch/freeswitch-sounds-ru-RU-elena-32000-1.0.13.tar.gz
	/pub/pkgsrc/distfiles/freeswitch/freeswitch-sounds-ru-RU-elena-48000-1.0.13.tar.gz
	/pub/pkgsrc/distfiles/kid3-3.3.0.tar.gz
	/pub/pkgsrc/distfiles/libdca-0.0.5.tar.bz2
	/pub/pkgsrc/distfiles/mp3to.gz
	/pub/pkgsrc/distfiles/squeezeboxserver-7.5.1-noCPAN.tgz
No changes made to these file.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 01:12:23 +00:00
asau
99287c2a5e FreeBSD 9 uses sys/soundcard.h 2013-12-15 20:14:16 +00:00
hans
f3a0f5c697 Fix build on SunOS. 2012-01-11 20:14:10 +00:00
joerg
c6507d5377 Don't mess up the links created by libtool, resulting in symlinks to
Nirvana. Bump revision
2010-10-12 21:50:49 +00:00
obache
ddfb1f807b Fixes build failure with gmake-3.82.
Patch provided by Ryo ONODERA with PR#43755.
2010-08-14 12:15:43 +00:00
drochner
6bd43d08b7 redo the librt patch so that libportaudio.so is linked against librt,
and try to introduce a scheme which could be used in a more general
framework (once NetBSD has stabilized and we got some experience
with the realtime stuff)
2008-02-05 20:21:56 +00:00
heinz
c5187dbe6f Added support for installation to DESTDIR. 2007-07-01 21:00:14 +00:00
ben
1a307bab1e Fix build on i386 Mac OS X 10.4.7. 2006-08-27 20:29:26 +00:00
joerg
1374161753 Use pthread variables instead of hard-wired -lpthread for the detection
in configure. This allows DragonFly to get threading.
2005-10-10 15:24:08 +00:00
agc
71c8259803 Add RMD160 digests to the SHA1 ones. 2005-02-23 20:39:42 +00:00
ben
3f0a667399 Make libtool link libportaudio to LIBOSSAUDIO. 2004-10-05 04:06:30 +00:00
ben
ad6705feb9 Libtoolize portaudio and bump PKGREVISION. This may resolve PR#27050. 2004-10-05 03:53:15 +00:00
jlam
ca70938428 Replace RPATH_FLAG with LINKER_RPATH_FLAG and COMPILER_RPATH_FLAG,
which are the full option names used to set rpath directives for the
linker and the compiler, respectively.  In places were we are invoking
the linker, use "${LINKER_RPATH_FLAG} <path>", where the space is
inserted in case the flag is a word, e.g. -rpath.  The default values
of *_RPATH_FLAG are set by the compiler/*.mk files, depending on the
compiler that you use.  They may be overridden on a ${OPSYS}-specific
basis by setting _OPSYS_LINKER_RPATH_FLAG and _OPSYS_COMPILER_RPATH_FLAG,
respectively.  Garbage-collect _OPSYS_RPATH_NAME and _COMPILER_LD_FLAG.
2004-08-27 06:29:06 +00:00
ben
154d25d056 Initial import of portaudio-18.1, a portable cross-platform audio API.
Package provided by dotz@irc.pl.

PortAudio is a free, cross platform, open-source, audio I/O library.  It
lets you write simple audio programs in 'C' that will compile and run on
many platforms including Windows, Macintosh (8,9,X), Unix (OSS), SGI, and
BeOS. PortAudio is intended to promote the exchange of audio synthesis
software between developers on different platforms, and was recently
selected as the audio component of a larger PortMusic project that includes
MIDI and sound file support.

PortAudio provides a very simple API for recording and/or playing sound
using a simple callback function.  Example programs are included that
synthesize sine waves and pink noise, perform fuzz distortion on a guitar,
list available audio devices, etc.
2004-04-20 17:52:48 +00:00