Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
e726e2a0
Commit
e726e2a0
authored
Jan 17, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
music_pipe: removed music_pipe_append()
The function is unused, since decoder_api() uses music_pipe_write() / music_pipe_expand() now.
parent
610e7950
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
39 deletions
+0
-39
pipe.c
src/pipe.c
+0
-30
pipe.h
src/pipe.h
+0
-9
No files found.
src/pipe.c
View file @
e726e2a0
...
...
@@ -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
;
...
...
src/pipe.h
View file @
e726e2a0
...
...
@@ -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.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment