[XAudio2] avoid leak + fix voice creation for closest match
[xbmc.git] / xbmc / music / MusicFileItemClassify.h
blob5202bdabdf40ad31c03e3ede6db2aa5163cd92bb
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 class CFileItem;
13 namespace KODI::MUSIC
16 //! \brief Check whether an item is an audio item.
17 //! \details Note that this returns true for anything with a music info tag,
18 //! so that may include eg. folders.
19 bool IsAudio(const CFileItem& item);
21 //! \brief Check whether an item is an audio book item.
22 bool IsAudioBook(const CFileItem& item);
24 //! \brief Check whether an item is an audio cd item.
25 bool IsCDDA(const CFileItem& item);
27 //! \brief Check whether an item is a cue sheet.
28 bool IsCUESheet(const CFileItem& item);
30 //! \brief Check whether an item is a lyrics file.
31 bool IsLyrics(const CFileItem& item);
33 //! \brief Check whether an item is a music database item.
34 bool IsMusicDb(const CFileItem& item);
36 } // namespace KODI::MUSIC