5
5
// Copyright (c) 2002 by Drew Hess <dhess@bothan.net>
7
// This program is free software; you can redistribute it and/or modify
8
// it under the terms of the GNU General Public License as published by
9
// the Free Software Foundation; either version 2 of the License, or
10
// (at your option) any later version.
12
// This program is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU General Public License for more details.
17
// You should have received a copy of the GNU General Public License
18
// along with this program; if not, write to the Free Software
19
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
7
/* This file is part of AlsaPlayer.
9
* AlsaPlayer is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 3 of the License, or
12
* (at your option) any later version.
14
* AlsaPlayer is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, see <http://www.gnu.org/licenses/>.
20
22
//-------------------------------------------------------------------------
22
24
#include "FlacEngine.h"
323
325
FLAC__StreamDecoderReadStatus
324
327
FlacStream::realReadCallBack (FLAC__byte buffer[], unsigned * bytes)
329
FlacStream::realReadCallBack (FLAC__byte buffer[], size_t * bytes)
326
332
*bytes = reader_read (buffer, *bytes, _datasource);
327
333
return *bytes > 0 ? FLAC__STREAM_DECODER_READ_STATUS_CONTINUE :