aboutsummaryrefslogtreecommitdiffstats
path: root/src/pipe.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-03 22:23:25 +0100
committerMax Kellermann <max@duempel.org>2009-03-03 22:23:25 +0100
commitc655f804a92d82416b62d541c528b615e2ce27f6 (patch)
tree14b322890dd438dee443668b0b637f92b19b9db9 /src/pipe.h
parent1063c1f2e3ac297d0e766f2573ee6459bc31df11 (diff)
downloadmpd-c655f804a92d82416b62d541c528b615e2ce27f6.tar.gz
mpd-c655f804a92d82416b62d541c528b615e2ce27f6.tar.xz
mpd-c655f804a92d82416b62d541c528b615e2ce27f6.zip
music_pipe: moved struct music_chunk to chunk.h
Diffstat (limited to 'src/pipe.h')
-rw-r--r--src/pipe.h31
1 files changed, 2 insertions, 29 deletions
diff --git a/src/pipe.h b/src/pipe.h
index 3bb627ae7..0d871d886 100644
--- a/src/pipe.h
+++ b/src/pipe.h
@@ -23,36 +23,9 @@
#include <stdint.h>
#include <stdbool.h>
-/* pick 1020 since its devisible for 8,16,24, and 32-bit audio */
-#define CHUNK_SIZE 1020
-
struct audio_format;
-
-/**
- * A chunk of music data. Its format is defined by the
- * music_pipe_append() caller.
- */
-struct music_chunk {
- /** number of bytes stored in this chunk */
- uint16_t length;
-
- /** current bit rate of the source file */
- uint16_t bit_rate;
-
- /** the time stamp within the song */
- float times;
-
- /**
- * An optional tag associated with this chunk (and the
- * following chunks); appears at song boundaries. The tag
- * object is owned by this chunk, and must be freed when this
- * chunk is deinitialized in music_chunk_free()
- */
- struct tag *tag;
-
- /** the data (probably PCM) */
- char data[CHUNK_SIZE];
-};
+struct tag;
+struct music_chunk;
/**
* A ring set of buffers where the decoder appends data after the end,