2009-03-02 18:00:46 +01:00
|
|
|
/*
|
2021-01-01 19:54:25 +01:00
|
|
|
* Copyright 2003-2021 The Music Player Daemon Project
|
2009-03-02 18:00:46 +01:00
|
|
|
* http://www.musicpd.org
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2009-03-13 18:43:16 +01:00
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2009-03-02 18:00:46 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
*
|
|
|
|
* A parser for the RIFF file format (e.g. WAV).
|
|
|
|
*/
|
|
|
|
|
2021-02-16 19:21:31 +01:00
|
|
|
#ifndef MPD_RIFF_ID3_HXX
|
|
|
|
#define MPD_RIFF_ID3_HXX
|
2009-03-02 18:00:46 +01:00
|
|
|
|
2019-05-07 19:23:01 +02:00
|
|
|
#include "thread/Mutex.hxx"
|
2019-04-26 19:19:45 +02:00
|
|
|
|
2020-03-13 00:46:28 +01:00
|
|
|
#include <cstddef>
|
2016-02-19 19:35:16 +01:00
|
|
|
|
|
|
|
class InputStream;
|
2009-03-02 18:00:46 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Seeks the RIFF file to the ID3 chunk.
|
|
|
|
*
|
2016-09-09 18:47:42 +02:00
|
|
|
* Throws std::runtime_error on error.
|
|
|
|
*
|
2016-02-19 19:35:16 +01:00
|
|
|
* @param is a locked #InputStream
|
2016-09-09 18:47:42 +02:00
|
|
|
* @return the size of the ID3 chunk
|
2009-03-02 18:00:46 +01:00
|
|
|
*/
|
|
|
|
size_t
|
2019-04-26 19:19:45 +02:00
|
|
|
riff_seek_id3(InputStream &is, std::unique_lock<Mutex> &lock);
|
2009-03-02 18:00:46 +01:00
|
|
|
|
|
|
|
#endif
|