forked from len0rd/rockbox
Remove all tabs within codec path.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24862 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c1bb06c3af
commit
398b37124e
84 changed files with 8801 additions and 8801 deletions
|
|
@ -82,7 +82,7 @@ struct buffer {
|
|||
|
||||
static
|
||||
enum mad_flow input(void *data,
|
||||
struct mad_stream *stream)
|
||||
struct mad_stream *stream)
|
||||
{
|
||||
struct buffer *buffer = data;
|
||||
|
||||
|
|
@ -128,8 +128,8 @@ signed int scale(mad_fixed_t sample)
|
|||
|
||||
static
|
||||
enum mad_flow output(void *data,
|
||||
struct mad_header const *header,
|
||||
struct mad_pcm *pcm)
|
||||
struct mad_header const *header,
|
||||
struct mad_pcm *pcm)
|
||||
{
|
||||
unsigned int nchannels, nsamples;
|
||||
mad_fixed_t const *left_ch, *right_ch;
|
||||
|
|
@ -169,14 +169,14 @@ enum mad_flow output(void *data,
|
|||
|
||||
static
|
||||
enum mad_flow error(void *data,
|
||||
struct mad_stream *stream,
|
||||
struct mad_frame *frame)
|
||||
struct mad_stream *stream,
|
||||
struct mad_frame *frame)
|
||||
{
|
||||
struct buffer *buffer = data;
|
||||
|
||||
fprintf(stderr, "decoding error 0x%04x (%s) at byte offset %u\n",
|
||||
stream->error, mad_stream_errorstr(stream),
|
||||
stream->this_frame - buffer->start);
|
||||
stream->error, mad_stream_errorstr(stream),
|
||||
stream->this_frame - buffer->start);
|
||||
|
||||
/* return MAD_FLOW_BREAK here to stop decoding (and propagate an error) */
|
||||
|
||||
|
|
@ -207,8 +207,8 @@ int decode(unsigned char const *start, unsigned long length)
|
|||
/* configure input, output, and error functions */
|
||||
|
||||
mad_decoder_init(&decoder, &buffer,
|
||||
input, 0 /* header */, 0 /* filter */, output,
|
||||
error, 0 /* message */);
|
||||
input, 0 /* header */, 0 /* filter */, output,
|
||||
error, 0 /* message */);
|
||||
|
||||
/* start decoding */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue