[XAudio2] avoid leak + fix voice creation for closest match
[xbmc.git] / xbmc / pictures / PictureFolderImageFileLoader.h
blob0a77549e5004bf26bd2a2cae0f33d611b69d8b83
1 /*
2 * Copyright (C) 2023 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 #include "imagefiles/SpecialImageFileLoader.h"
13 /*!
14 * @brief Generates a thumbnail for a folder in the picture browser, tile 4 images inside the folder.
16 class CPictureFolderImageFileLoader : public IMAGE_FILES::ISpecialImageFileLoader
18 public:
19 CPictureFolderImageFileLoader() = default;
20 ~CPictureFolderImageFileLoader() override = default;
22 bool CanLoad(const std::string& specialType) const override;
23 std::unique_ptr<CTexture> Load(const IMAGE_FILES::CImageFileURL& imageFile) const override;