chiark / gitweb /
disorder
10 years agoget-volume shouldn't corrupt the volume!
Richard Kettlewell [Sun, 8 Mar 2009 13:08:37 +0000 (13:08 +0000)]
get-volume shouldn't corrupt the volume!

10 years agoBuild fixes for FreeBSD
Richard Kettlewell [Sun, 8 Mar 2009 13:01:09 +0000 (13:01 +0000)]
Build fixes for FreeBSD

10 years agoBuild fixes for uaudio ALSA/OSS backends.
Richard Kettlewell [Sun, 8 Mar 2009 11:32:33 +0000 (11:32 +0000)]
Build fixes for uaudio ALSA/OSS backends.

10 years ago'api' configuration command now uses uaudio. The list of APIs is only
Richard Kettlewell [Sun, 8 Mar 2009 11:28:22 +0000 (11:28 +0000)]
'api' configuration command now uses uaudio.  The list of APIs is only
available in server processes (since it currently drags in the API
implementations which in turn drags in external audio support
libraries, which extends the dependencies of the command-line client
unacceptable).

disorder-speaker now uses uaudio, abolishing the various speaker-*.c
API-specific files.

uaudio now handles volume control as well as playback, abolishing
mixer.h et al.

"rtp" is the preferred name for the RTP API.  "network" is retained
for backward compatibility.

Lightly tested - works for local play on a Mac.

10 years agouaudio_apis[] is a constant
Richard Kettlewell [Tue, 3 Mar 2009 20:40:01 +0000 (20:40 +0000)]
uaudio_apis[] is a constant

10 years agoAbolish UAUDIO_DEFAULT
Richard Kettlewell [Tue, 3 Mar 2009 19:40:33 +0000 (19:40 +0000)]
Abolish UAUDIO_DEFAULT

10 years agoRestore uaudio_apis[], but in a separate executable to avoid everything
Richard Kettlewell [Tue, 3 Mar 2009 19:37:37 +0000 (19:37 +0000)]
Restore uaudio_apis[], but in a separate executable to avoid everything
having to be linked against audio libraries.

10 years agoAdd xcalloc_noptr(), which allows uaudio-thread.c to ask for
Richard Kettlewell [Sun, 1 Mar 2009 19:13:49 +0000 (19:13 +0000)]
Add xcalloc_noptr(), which allows uaudio-thread.c to ask for
pointerless buffers.  Also convenient for unicode.c.

10 years agoUniform audio command back end now rate limited.
Richard Kettlewell [Sun, 1 Mar 2009 19:01:36 +0000 (19:01 +0000)]
Uniform audio command back end now rate limited.
The algorithm is the same as for the RTP backend, and is therefore
split out into a separate file, uaudio-schedule.c.

10 years agoAbolish uaudio_apis[]. Instead, define UAUDIO_DEFAULT to indicate
Richard Kettlewell [Sun, 1 Mar 2009 18:07:39 +0000 (18:07 +0000)]
Abolish uaudio_apis[].  Instead, define UAUDIO_DEFAULT to indicate
default sound API.  This saves e.g. uaudio_rtp being linked into
disorder-playrtp.  It does mean that users need more knowledge of
available APIs, but since they need to know what options to set that's
not much of an extra burden.

10 years agouaudio-rtp.c builds on Mac
Richard Kettlewell [Sun, 1 Mar 2009 17:53:14 +0000 (17:53 +0000)]
uaudio-rtp.c builds on Mac

10 years agoSupport uniform audio command backend from disorder-playrtp. A useful
Richard Kettlewell [Sun, 1 Mar 2009 17:45:15 +0000 (17:45 +0000)]
Support uniform audio command backend from disorder-playrtp.  A useful
way to test it but potentially a useful feature too.

10 years agoCorrect command FD!
Richard Kettlewell [Sun, 1 Mar 2009 17:32:12 +0000 (17:32 +0000)]
Correct command FD!

10 years agoUniform audio version of the command backend. No attempt to rate-limit
Richard Kettlewell [Sun, 1 Mar 2009 17:10:35 +0000 (17:10 +0000)]
Uniform audio version of the command backend.  No attempt to rate-limit
here, we just send audio data at the subprocess as fast as it can accept
it.

As tested as the RTP backend i.e. not.

10 years agoUniform audio RTP implementation. Not tested yet!
Richard Kettlewell [Sun, 1 Mar 2009 16:53:06 +0000 (16:53 +0000)]
Uniform audio RTP implementation.  Not tested yet!

10 years agoMerge disorder-playrtp docs fix
Richard Kettlewell [Sun, 1 Mar 2009 12:59:42 +0000 (12:59 +0000)]
Merge disorder-playrtp docs fix

10 years agoQuieten autotools warning
Richard Kettlewell [Sun, 1 Mar 2009 12:59:02 +0000 (12:59 +0000)]
Quieten autotools warning

10 years agoImprove disorder-playrtp docs/--help
Richard Kettlewell [Sun, 1 Mar 2009 12:42:21 +0000 (12:42 +0000)]
Improve disorder-playrtp docs/--help

10 years agoFix uaudio-coreaudio.c after last change
Richard Kettlewell [Sun, 1 Mar 2009 12:09:40 +0000 (12:09 +0000)]
Fix uaudio-coreaudio.c after last change

10 years agoALSA support for uniform audio. ALSA and OSS support now shares the
Richard Kettlewell [Sun, 1 Mar 2009 12:01:34 +0000 (12:01 +0000)]
ALSA support for uniform audio.  ALSA and OSS support now shares the
threading work, which is split into a collecter and a player thread
communicating via a ring of buffers.

New uaudio_set_format() allows caller to declare what the sample format
will be, giving us flexibility to do things other than 16/44100/2
(although not tested with other formats).

Core audio uniform audio support now supports more sample formats, and
checks that the channel count and rate are right.  It doesn't
(currently) attempt to ask for different channel counts or rates.

10 years agouaudio OSS support now compiles
Richard Kettlewell [Sat, 28 Feb 2009 18:18:44 +0000 (18:18 +0000)]
uaudio OSS support now compiles

10 years agoUniform audio backend for Core Audio. There is an untested OSS one
Richard Kettlewell [Sat, 28 Feb 2009 17:50:53 +0000 (17:50 +0000)]
Uniform audio backend for Core Audio.  There is an untested OSS one
and a placeholder RTP one lurking around too.

disorder-playrtp now uses the uniform audio interface (and is
considerably simplified as a result).

10 years agoTurns out that GetMacOSStatusErrorString() and
Richard Kettlewell [Sat, 28 Feb 2009 11:03:19 +0000 (11:03 +0000)]
Turns out that GetMacOSStatusErrorString() and
GetMacOSStatusCommentString() don't produce useful answers, at least
for sound-related errors.  Users will just have to put up with numeric
error codes.

Thanks so much, Apple.

10 years agoCore Audio support should now include descriptions in error strings.
Richard Kettlewell [Sat, 28 Feb 2009 10:42:22 +0000 (10:42 +0000)]
Core Audio support should now include descriptions in error strings.
Not tested!

10 years agotypo fix
Richard Kettlewell [Sat, 28 Feb 2009 10:41:50 +0000 (10:41 +0000)]
typo fix

10 years agoMerge Core Audio fixes
Richard Kettlewell [Sun, 22 Feb 2009 14:09:22 +0000 (14:09 +0000)]
Merge Core Audio fixes

10 years agoSupport arbitrary Core Audio devices.
Richard Kettlewell [Sun, 22 Feb 2009 14:00:46 +0000 (14:00 +0000)]
Support arbitrary Core Audio devices.

New files lib/coreaudio.[ch] contain the code for looking up devices
by name or UID and is used by the server and playrtp.

Fixes issue 27.

10 years agodisorderd does not (currently) need CoreAudio libraries, so don't link
Richard Kettlewell [Sun, 22 Feb 2009 13:04:35 +0000 (13:04 +0000)]
disorderd does not (currently) need CoreAudio libraries, so don't link
against them.

10 years agoRemove fossils
Richard Kettlewell [Sat, 21 Feb 2009 20:43:33 +0000 (20:43 +0000)]
Remove fossils
There's only been one log implementation exported to plugins for ages.
As well as rationalizing the code in this light we make the disorder_
names the canonical ones and provide macros to make all the existing
code work.  I don't see any need to convert code to use the canonical
names currently.

10 years agomem-impl.h is no longer shared code, so remove
Richard Kettlewell [Sat, 21 Feb 2009 20:26:54 +0000 (20:26 +0000)]
mem-impl.h is no longer shared code, so remove

10 years agoRemove obsolete api-client.[ch]
Richard Kettlewell [Sat, 21 Feb 2009 20:22:11 +0000 (20:22 +0000)]
Remove obsolete api-client.[ch]

10 years agonot 4.3 any more
Richard Kettlewell [Tue, 17 Feb 2009 20:16:23 +0000 (20:16 +0000)]
not 4.3 any more

10 years agotypo fixes and updates
Richard Kettlewell [Tue, 17 Feb 2009 18:58:41 +0000 (18:58 +0000)]
typo fixes and updates

10 years agoDisOrder 4.3 4.3
Richard Kettlewell [Sun, 15 Feb 2009 15:50:00 +0000 (15:50 +0000)]
DisOrder 4.3

10 years agoShip scripts/setversion; needed by new scripts/dist
Richard Kettlewell [Sun, 15 Feb 2009 15:26:10 +0000 (15:26 +0000)]
Ship scripts/setversion; needed by new scripts/dist

10 years agoBring CHANGES.html up to date
Richard Kettlewell [Sun, 15 Feb 2009 12:48:33 +0000 (12:48 +0000)]
Bring CHANGES.html up to date

10 years agoOldstabe version gets a ~-based version number.
Richard Kettlewell [Sun, 15 Feb 2009 12:32:03 +0000 (12:32 +0000)]
Oldstabe version gets a ~-based version number.

10 years agoscripts/dist now builds and ships various .deb files
Richard Kettlewell [Sun, 15 Feb 2009 12:19:36 +0000 (12:19 +0000)]
scripts/dist now builds and ships various .deb files

10 years agoShip disorder-choose.8.in
Richard Kettlewell [Sun, 15 Feb 2009 12:19:19 +0000 (12:19 +0000)]
Ship disorder-choose.8.in

10 years agoSet resource limits on the server to prevent more than FD_SETSIZE
Richard Kettlewell [Sun, 15 Feb 2009 11:39:46 +0000 (11:39 +0000)]
Set resource limits on the server to prevent more than FD_SETSIZE
files being opened.  (It's not unusual for them to be set like this
anyway, but this change guarantees it.)

event.c also checks for FDs being in range.

10 years agoApply the remains of Ross's patch to build on Ubuntu 8.10.
Richard Kettlewell [Sat, 31 Jan 2009 14:57:30 +0000 (14:57 +0000)]
Apply the remains of Ross's patch to build on Ubuntu 8.10.

http://code.google.com/p/disorder/issues/detail?id=24

10 years agoREADME.developers tells you to install wget too.
Richard Kettlewell [Sat, 31 Jan 2009 14:52:00 +0000 (14:52 +0000)]
README.developers tells you to install wget too.

10 years agoneed vorbis-tools
Richard Kettlewell [Sat, 31 Jan 2009 14:50:52 +0000 (14:50 +0000)]
need vorbis-tools

10 years agoDisable -Wformat-security for t-printf, which deliberately uses some
Richard Kettlewell [Sat, 31 Jan 2009 12:55:37 +0000 (12:55 +0000)]
Disable -Wformat-security for t-printf, which deliberately uses some
dubious format strings.  -Wformat-security goes back at least to GCC
3.0 so it's probably a safe bet to disable without a test.

http://code.google.com/p/disorder/issues/detail?id=24

10 years agoKill off cgi_attr(), cgi_opentag() and cgi_closetag() which aren't
Richard Kettlewell [Sat, 31 Jan 2009 12:45:22 +0000 (12:45 +0000)]
Kill off cgi_attr(), cgi_opentag() and cgi_closetag() which aren't
actually used (?any more).

http://code.google.com/p/disorder/issues/detail?id=24

10 years agoSet last_playing to NULL when we don't have up to date information
Richard Kettlewell [Sat, 31 Jan 2009 12:33:59 +0000 (12:33 +0000)]
Set last_playing to NULL when we don't have up to date information
about the playing track (including, importantly, just after pausing).
column_length() returns NULL in this case, and ql_update_row() leaves
cells that have a NULL value along.

The effect is that the played so far indicator is left as it is until
we're sure what the right value is.  Usually in fact it will already
be right, so we don't even lie; when it isn't, at least it jumps
around less before reaching the right value.

http://code.google.com/p/disorder/issues/detail?id=26

10 years agoDisobedience updates last_playing whenever a 'playing' command
Richard Kettlewell [Sat, 31 Jan 2009 12:29:04 +0000 (12:29 +0000)]
Disobedience updates last_playing whenever a 'playing' command
completes now.  This mostly keeps the played so far field correct
though it does briefly jump to a wrong value and then back when you
unpause.

http://code.google.com/p/disorder/issues/detail?id=26

10 years agoSupport DEB_BUILD_OPTIONS=parallel=N
Richard Kettlewell [Sun, 18 Jan 2009 16:26:39 +0000 (16:26 +0000)]
Support DEB_BUILD_OPTIONS=parallel=N

10 years agoFix man page conflict
Richard Kettlewell [Sat, 17 Jan 2009 13:51:21 +0000 (13:51 +0000)]
Fix man page conflict

10 years agoResolve another Lintian warning
Richard Kettlewell [Sat, 17 Jan 2009 13:39:24 +0000 (13:39 +0000)]
Resolve another Lintian warning

10 years agoAdd LSB init info
Richard Kettlewell [Sat, 17 Jan 2009 13:31:37 +0000 (13:31 +0000)]
Add LSB init info

10 years agoAdd a disorder-choose man page
Richard Kettlewell [Sat, 17 Jan 2009 13:31:22 +0000 (13:31 +0000)]
Add a disorder-choose man page

10 years agoUse invoke-rc.d instead of accessing /etc/init.d directly. Lintian again.
Richard Kettlewell [Sat, 17 Jan 2009 12:54:09 +0000 (12:54 +0000)]
Use invoke-rc.d instead of accessing /etc/init.d directly.  Lintian again.

10 years agoResolve further Lintian warnings
Richard Kettlewell [Sat, 17 Jan 2009 12:48:19 +0000 (12:48 +0000)]
Resolve further Lintian warnings

10 years agoResolve a bunch of Lintian warnings
Richard Kettlewell [Sat, 17 Jan 2009 12:33:57 +0000 (12:33 +0000)]
Resolve a bunch of Lintian warnings

10 years agoFix typo in troff rune
Richard Kettlewell [Sat, 17 Jan 2009 12:33:28 +0000 (12:33 +0000)]
Fix typo in troff rune

10 years agoAdd links to .deb source control file per
Richard Kettlewell [Thu, 8 Jan 2009 12:15:57 +0000 (12:15 +0000)]
Add links to .deb source control file per
http://www.debian.org/doc/developers-reference/best-pkging-practices.html#bpp-debian-control

10 years agorestore db4.3 support (broken in previous commit)
Richard Kettlewell [Sat, 3 Jan 2009 00:13:48 +0000 (00:13 +0000)]
restore db4.3 support (broken in previous commit)

10 years agoReject db version 4.6 in configure.
Richard Kettlewell [Wed, 31 Dec 2008 14:13:45 +0000 (14:13 +0000)]
Reject db version 4.6 in configure.

10 years agonote that 4.6 does not wokr!
Richard Kettlewell [Tue, 30 Dec 2008 23:42:42 +0000 (23:42 +0000)]
note that 4.6 does not wokr!

10 years agofix-names script to mess with track filenames
Richard Kettlewell [Tue, 30 Dec 2008 23:39:32 +0000 (23:39 +0000)]
fix-names script to mess with track filenames

10 years agoClose down databases on database-open error more carefuly. It would
Richard Kettlewell [Tue, 30 Dec 2008 21:24:46 +0000 (21:24 +0000)]
Close down databases on database-open error more carefuly.  It would
be better to do this via an atexit() handler or something (with care
about subprocesses).

10 years agodisorder-choose aborts outstanding transaction before failing.
Richard Kettlewell [Tue, 30 Dec 2008 19:58:44 +0000 (19:58 +0000)]
disorder-choose aborts outstanding transaction before failing.

10 years agodisorderfm preserves permissions now
Richard Kettlewell [Tue, 30 Dec 2008 19:32:49 +0000 (19:32 +0000)]
disorderfm preserves permissions now

10 years agoFix format string pedantry to build on 64-bit Linux
Richard Kettlewell [Tue, 30 Dec 2008 12:16:15 +0000 (12:16 +0000)]
Fix format string pedantry to build on 64-bit Linux

10 years agoUse a local implementation of strptime() instead of broken OS ones
Richard Kettlewell [Sun, 28 Dec 2008 11:12:17 +0000 (11:12 +0000)]
Use a local implementation of strptime() instead of broken OS ones

10 years agoUse a local implementation of strptime() instead of broken OS ones
Richard Kettlewell [Sun, 28 Dec 2008 11:10:39 +0000 (11:10 +0000)]
Use a local implementation of strptime() instead of broken OS ones

10 years agoCorrect glob m4 quoting
Richard Kettlewell [Tue, 23 Dec 2008 21:00:17 +0000 (21:00 +0000)]
Correct glob m4 quoting

10 years agoGuess sox generation in configure script
Richard Kettlewell [Tue, 23 Dec 2008 20:57:49 +0000 (20:57 +0000)]
Guess sox generation in configure script

10 years agoadd adopt to completions
Richard Kettlewell [Tue, 23 Dec 2008 20:56:31 +0000 (20:56 +0000)]
add adopt to completions

11 years agoUpdate documentation
Richard Kettlewell [Sat, 13 Dec 2008 16:17:40 +0000 (16:17 +0000)]
Update documentation

11 years agoMention track adoption in CHANGES.
Richard Kettlewell [Sat, 13 Dec 2008 16:10:44 +0000 (16:10 +0000)]
Mention track adoption in CHANGES.

11 years agoDisobedience can now adopt tracks.
Richard Kettlewell [Sat, 13 Dec 2008 16:07:06 +0000 (16:07 +0000)]
Disobedience can now adopt tracks.

11 years agoDisobedience notices when tracks are adopted now.
Richard Kettlewell [Sat, 13 Dec 2008 15:53:22 +0000 (15:53 +0000)]
Disobedience notices when tracks are adopted now.

11 years agoAdd 'adopt' command. This adopts a randomly picked track by changing
Richard Kettlewell [Sat, 13 Dec 2008 15:48:31 +0000 (15:48 +0000)]
Add 'adopt' command.  This adopts a randomly picked track by changing
its origin to 'adopted' and its submitter to the calling user.  The
nice UIs don't support this yet but you can access it from the command
line.

Document 'origin' and update 'state' in disorder_protocol(5).

11 years agoQuieten compiler
Richard Kettlewell [Mon, 8 Dec 2008 19:28:25 +0000 (19:28 +0000)]
Quieten compiler

11 years agoReplace rather bizarre 'select all' in choose tab with 'select
Richard Kettlewell [Sun, 7 Dec 2008 20:20:51 +0000 (20:20 +0000)]
Replace rather bizarre 'select all' in choose tab with 'select
children' which (after jumping through some hoops) selects just the
file children of the selected directory.

Updated the Disobedience documentation a bit.

11 years agosetversion script for test builds
Richard Kettlewell [Sat, 6 Dec 2008 22:44:43 +0000 (22:44 +0000)]
setversion script for test builds

11 years agoSilence compiler warning
Richard Kettlewell [Sat, 6 Dec 2008 21:47:04 +0000 (21:47 +0000)]
Silence compiler warning

11 years agonew target to remove coverage droppings
Richard Kettlewell [Sat, 6 Dec 2008 14:50:58 +0000 (14:50 +0000)]
new target to remove coverage droppings

11 years agoChanges to HTML coverage output:
Richard Kettlewell [Sat, 6 Dec 2008 14:41:15 +0000 (14:41 +0000)]
Changes to HTML coverage output:
  - include missing files in the main table
  - CSS bar graph of coverage

11 years agomore coverage + doxygen
Richard Kettlewell [Sat, 6 Dec 2008 14:24:24 +0000 (14:24 +0000)]
more coverage + doxygen

11 years agomake sure gcov reports generated after all tests complete
Richard Kettlewell [Sat, 6 Dec 2008 14:04:05 +0000 (14:04 +0000)]
make sure gcov reports generated after all tests complete

11 years agolibtest now generates coverage report for lib/ not itself!
Richard Kettlewell [Sat, 6 Dec 2008 14:00:14 +0000 (14:00 +0000)]
libtest now generates coverage report for lib/ not itself!

11 years agoClean up after coverage testing properly
Richard Kettlewell [Sat, 6 Dec 2008 13:51:14 +0000 (13:51 +0000)]
Clean up after coverage testing properly

11 years agoReduce track choice neophilia a bit
Richard Kettlewell [Sat, 29 Nov 2008 15:38:35 +0000 (15:38 +0000)]
Reduce track choice neophilia a bit

11 years agoWait a bit long for subprocesses to clear off.
Richard Kettlewell [Sat, 1 Nov 2008 12:44:32 +0000 (12:44 +0000)]
Wait a bit long for subprocesses to clear off.

The real fix is to make the server wait more reliably for its
subprocesses to terminate when it's shut down.

11 years agoObsolete playing_isscratch. The constant still exists as a transition
Richard Kettlewell [Sat, 1 Nov 2008 12:39:43 +0000 (12:39 +0000)]
Obsolete playing_isscratch.  The constant still exists as a transition
measure (and will probably do so for some time to come).

11 years agoObsolete playing_random state
Richard Kettlewell [Wed, 29 Oct 2008 19:07:52 +0000 (19:07 +0000)]
Obsolete playing_random state

11 years agoDocument playing_state and queue_entry better
Richard Kettlewell [Tue, 28 Oct 2008 22:39:18 +0000 (22:39 +0000)]
Document playing_state and queue_entry better

11 years agoVersioning for queue files and a heuristic for reconstructing origin
Richard Kettlewell [Mon, 27 Oct 2008 20:13:38 +0000 (20:13 +0000)]
Versioning for queue files and a heuristic for reconstructing origin
fields.

11 years agoAdd a new 'origin' field to queue entries. This records the origin of
Richard Kettlewell [Mon, 27 Oct 2008 19:52:24 +0000 (19:52 +0000)]
Add a new 'origin' field to queue entries.  This records the origin of
the track independently of its current state (the 'state' field mixes
up the two concepts in an unhelpful way).  A few things use this but
not yet all.

Old queues will produce confusion if you upgrade to this version.
Nothing's yet been done to fix this; there'll have to be a version
field.

Fixed a few bits of template documentation too.

11 years agolibdb up to 4.6 does seem to work
Richard Kettlewell [Sun, 26 Oct 2008 16:36:15 +0000 (16:36 +0000)]
libdb up to 4.6 does seem to work

11 years agoRTP player now ignores packets with "X" bit set
Richard Kettlewell [Sun, 26 Oct 2008 13:37:00 +0000 (13:37 +0000)]
RTP player now ignores packets with "X" bit set

11 years agoA bit more doxygen
Richard Kettlewell [Sun, 26 Oct 2008 12:17:38 +0000 (12:17 +0000)]
A bit more doxygen

11 years agoDoxygen for C test infrastructure
Richard Kettlewell [Sun, 26 Oct 2008 10:38:48 +0000 (10:38 +0000)]
Doxygen for C test infrastructure

11 years agoDoxygen file headers for most files
Richard Kettlewell [Sat, 25 Oct 2008 17:42:35 +0000 (18:42 +0100)]
Doxygen file headers for most files

11 years agoDoxygen-clean
Richard Kettlewell [Sat, 25 Oct 2008 16:30:40 +0000 (17:30 +0100)]
Doxygen-clean

11 years agomention gpl3 in README.developers
Richard Kettlewell [Sat, 25 Oct 2008 16:10:42 +0000 (17:10 +0100)]
mention gpl3 in README.developers

11 years agoSaner distcheck cgiexecdir
Richard Kettlewell [Tue, 21 Oct 2008 08:20:44 +0000 (09:20 +0100)]
Saner distcheck cgiexecdir