Max Kellermann
2cbda895fb
icy_server: don't export icy_server_metadata_string()
...
icy_server_metadata_string() is only called by
icy_server_metadata_page().
2009-04-13 19:39:33 +02:00
Max Kellermann
9919704be3
httpd: use C99 "bool" instead of GLib's gboolean
...
Plain "bool" consumes only one byte instead of four.
2009-04-13 19:39:19 +02:00
Max Kellermann
3f81f5b476
httpd: use g_ascii_strncasecmp() to compare headers
...
In HTTP, header names are case insensitive.
2009-04-13 19:39:16 +02:00
Hagen Schink
92ba754fc6
Implemented basic icy support for the httpd output
...
[mk: folded with patch "Put icy related functions in extra source
files"; moved icy_server.c from HAVE_CURL to ENABLE_HTTPD_OUTPUT;
removed an unused variable]
2009-04-13 19:35:02 +02:00
Max Kellermann
200be26371
decoder_api: submit the song tag to the music pipe
...
When a new song starts playing, send its tag (song->tag) to the music
pipe. This allows output plugins to render tags for all songs, not
only those with embedded tags understood by the decoder plugin.
2009-04-13 19:25:53 +02:00
Max Kellermann
548e842799
log: removed "unused" attribute from log_level parameter
2009-04-10 09:14:21 +02:00
Avuton Olrich
0b36e7d944
decoder: prefer wildmidi over fluidsynth
2009-04-06 11:03:45 +02:00
Avuton Olrich
d38f72b902
vorbis: move #define out of function to top of sources
2009-04-02 16:07:52 -07:00
Avuton Olrich
fd90db35b7
decoder: Rename all main decoder plugins functions to *decoder_plugin.
2009-04-02 15:55:10 -07:00
Max Kellermann
a7685780ed
configure.ac: renamed --enable-mod to --enable-mikmod
2009-04-01 22:48:06 +02:00
Max Kellermann
cd6182862a
httpd: don't pass uninitialized page to httpd_client_check_queue()
...
The httpd_client_check_queue() callback function does not use its
"user_data" argument. Don't pass any, and fix the gcc warning.
2009-04-01 22:45:21 +02:00
Max Kellermann
5242305a90
configure.ac: renamed --enable-oggvorbis to --enable-vorbis
2009-04-01 22:45:17 +02:00
Max Kellermann
e720b5bdf8
command: added command "sticker find"
...
This command allows clients to search for stickers with a specified
name.
2009-04-01 18:53:02 +02:00
Eric Wollesen
c95fa4b441
Move db_get_song into sub-handlers. (FReq 2112)
...
db_get_song was being called once for all sub-handlers, but with the
addition of the find command, we don't have a URI coming in, so doing
db_get_song once won't work anymore.
[mk: fixed initialization order]
2009-04-01 18:44:39 +02:00
Max Kellermann
c51e1bf1c0
song_sticker: added song_sticker_find()
...
This is a wrapper for sticker_find(), which looks up the song object.
2009-04-01 18:44:26 +02:00
Max Kellermann
3a4d20faa2
sticker: added sticker_find()
...
sticker_find() finds stickers with the specified name.
2009-04-01 18:42:06 +02:00
Max Kellermann
7f38c3fc78
directory: added directory_lookup_song()
...
Moved code from db_get_song().
2009-04-01 18:41:37 +02:00
Max Kellermann
36ec2edacf
directory: renamed directory_get_directory()
...
Renamed directory_get_directory() to directory_lookup_directory().
Added API documentation.
2009-04-01 18:41:33 +02:00
Max Kellermann
cb35d6e687
sticker_print: new library for sending stickers to a client
2009-04-01 17:30:56 +02:00
Max Kellermann
efcf40f55b
sticker: pass const sticker to sticker_foreach()
2009-04-01 17:27:59 +02:00
Max Kellermann
8ce2ec7aed
client, event_pipe: explicitly ignore the write() result
...
On both locations, the result of write() can be ignored safely. In
event_pipe_emit_fast(), that can only be "EAGAIN", which means that
the pipe buffer is full - no further notification required. In
client_init(), that would be a fatal connection error, which would be
caught by the next event.
This patch fixes gcc warnings.
2009-04-01 17:14:25 +02:00
Max Kellermann
a96bec3655
socket_util: fixed format warning
...
g_set_error() is a printf-like function, and expects a format string.
Using the return value of gai_strerror() is unsafe.
2009-04-01 16:45:03 +02:00
Max Kellermann
6419cc54ac
flac: fixed "unused variable" warning without libcue
...
Move the declaration of "i" into the "for" loop.
2009-04-01 16:44:27 +02:00
Jochen Keil
4bfbdfe5c5
Tag subtracks according to "cuesheet" vorbis comment value
...
Cuesheets are often saved as vorbis comment
flac files (CUESHEET=.. case doesn't matter).
We can parse this now and use the information to
tag the subtracks (from the embedded cuesheets).
2009-03-31 22:17:56 +02:00
Jochen Keil
d7b0c768b0
track length is computed correctly now
2009-03-31 22:17:56 +02:00
Jochen Keil
6720a0a940
free previously allocated flac metadata object
2009-03-31 22:17:56 +02:00
Jochen Keil
a1bde6b99d
remove old commented code
2009-03-31 22:17:56 +02:00
Jochen Keil
d41e7f7cec
Build tags from information in cue sheets
...
With these methods a tag struct can be created
from the cdtext information in a cue sheet.
The methods depend on a cue parsing library.
Reading from strings (char*) as well as from
a file (FILE*) is supported.
2009-03-31 22:17:56 +02:00
Romain Bignon
62a72a5e4d
do not consider single mode with "next" command
...
This is a little ugly, but as nextSongInPlaylist is both called when
queued is update (in case playlist ended) and for user "next" command,
there isn't any other (simple) solution
2009-03-31 14:15:33 +02:00
Avuton Olrich
98e81287e3
client: group static function declarations together.
2009-03-30 19:21:42 +02:00
Avuton Olrich
ee7369a8f1
queue_print: queue_print_song_info() is not necessry for export.
2009-03-30 19:21:41 +02:00
Avuton Olrich
68a4bb90da
queue: queue_generate_id() is not necessary for export.
2009-03-30 19:21:41 +02:00
Avuton Olrich
ed96db3fae
player_control: remove unused function playerCurrentDecodeSong().
2009-03-30 19:21:41 +02:00
Avuton Olrich
6405db931b
conf: config_param_free() not necessary for export.
2009-03-30 19:21:41 +02:00
Avuton Olrich
96ab110b44
command: command_error() is not necessary for export.
2009-03-30 19:21:41 +02:00
Avuton Olrich
215cdda08d
client: client_write() does not necessary for export.
2009-03-30 19:21:41 +02:00
Romain Bignon
e81f683a18
implemented the 'consume' mode
...
Consume mode removes each song played
2009-03-30 17:37:55 +02:00
Jochen Keil
80e2aaf379
Bugfix for time/offset in flac plugin
...
Previous cast to float didn't have any effect because one value is uint
and the other is a floating type but the number itself is even..
This caused some tracks to end before they were really at an end.
2009-03-28 10:13:44 +01:00
Max Kellermann
43864762ee
mixer: assert that the new volume value is valid
...
Added an assertion in mixer_set_volume(). Removed the range checks
from the ALSA and OSS plugins.
2009-03-27 20:10:39 +01:00
Max Kellermann
49e548e773
mpcdec: changed plugin name to "mpcdec"
...
The "mpcdec" plugin is based on the libmpcdec library.
2009-03-27 19:58:50 +01:00
Max Kellermann
f5548a8654
mpcdec: support the new libmpcdec SV8 API
2009-03-27 19:51:59 +01:00
Max Kellermann
0e18fab655
mpcdec: no CamelCase
...
Renamed variables and functions.
2009-03-27 19:37:08 +01:00
Max Kellermann
86827fc63e
tag_pool: use memcmp() instead of strcmp() for non-terminated string
...
The strings passed to tag_pool_get_item() are not null-terminated, and
the caller passes the string length. Don't assume it is
null-terminated anyway by using strcmp().
2009-03-27 19:36:24 +01:00
Max Kellermann
51894725ec
tag_pool: use size_t for string length
2009-03-27 19:36:03 +01:00
Sean McNamara
94479ca40f
event_pipe can only be non-blocking if !WIN32
2009-03-27 18:03:46 +01:00
Sean McNamara
f5ff243a8b
More debugging for Win32 ioctlsocket: complain if it's not a Winsock
...
socket, because there is no ioctl for non-sockets on Windows
2009-03-27 18:03:10 +01:00
Sean McNamara
37531f6f1e
Add winsock2 headers for curl's use of select() on sockets
2009-03-27 18:03:03 +01:00
Sean McNamara
b1e0bde529
Uniform getaddrinfo() on WIN32 or POSIX, because MinGW now supports it
2009-03-27 18:02:56 +01:00
Sean McNamara
9c63ffa546
Winsock2 is needed on MinGW (or other pure Win32 toolchains) for
...
networking, select(), ntohl(), etc.
2009-03-27 18:02:31 +01:00
Max Kellermann
b91517e761
sticker: move SQLite statements into an array
...
Simplify initialization and finalization.
2009-03-27 17:05:04 +01:00