aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-17 13:11:11 +0100
committerMax Kellermann <max@duempel.org>2009-01-17 13:11:11 +0100
commite726e2a0042f88d84a167bc955fe9d280db82c90 (patch)
tree1a9d526e1f34700ce5e9d183dbdbcbd8840c108c
parent610e79500e872a4fb25d9c8725ed188379d9fe81 (diff)
downloadmpd-e726e2a0042f88d84a167bc955fe9d280db82c90.tar.gz
mpd-e726e2a0042f88d84a167bc955fe9d280db82c90.tar.xz
mpd-e726e2a0042f88d84a167bc955fe9d280db82c90.zip
music_pipe: removed music_pipe_append()
The function is unused, since decoder_api() uses music_pipe_write() / music_pipe_expand() now.
Diffstat (limited to '')
-rw-r--r--src/pipe.c30
-rw-r--r--src/pipe.h9
2 files changed, 0 insertions, 39 deletions
diff --git a/src/pipe.c b/src/pipe.c
index b2680e37c..c681ab2c9 100644
--- a/src/pipe.c
+++ b/src/pipe.c
@@ -252,36 +252,6 @@ music_pipe_expand(const struct audio_format *audio_format, size_t length)
music_pipe_flush();
}
-size_t music_pipe_append(const void *data0, size_t datalen,
- const struct audio_format *audio_format,
- float data_time, uint16_t bit_rate)
-{
- const unsigned char *data = data0;
- size_t ret = 0, nbytes;
- void *dest;
-
- while (datalen) {
- dest = music_pipe_write(audio_format, data_time, bit_rate,
- &nbytes);
- if (dest == NULL)
- break;
-
- assert(nbytes > 0);
-
- if (nbytes > datalen)
- nbytes = datalen;
-
- memcpy(dest, data, nbytes);
- music_pipe_expand(audio_format, nbytes);
-
- datalen -= nbytes;
- data += nbytes;
- ret += nbytes;
- }
-
- return ret;
-}
-
bool music_pipe_tag(const struct tag *tag)
{
struct music_chunk *chunk;
diff --git a/src/pipe.h b/src/pipe.h
index 526bedb26..3bb627ae7 100644
--- a/src/pipe.h
+++ b/src/pipe.h
@@ -166,15 +166,6 @@ void
music_pipe_expand(const struct audio_format *audio_format, size_t length);
/**
- * Append a data block to the buffer.
- *
- * @return the number of bytes actually written
- */
-size_t music_pipe_append(const void *data, size_t datalen,
- const struct audio_format *audio_format,
- float data_time, uint16_t bit_rate);
-
-/**
* Send a tag. This is usually called when a new song within a stream
* begins.
*/