[XAudio2] avoid leak + fix voice creation for closest match
[xbmc.git] / xbmc / pictures / SlideShowPictureDX.h
blob88f6d038264526c25adf81df7f60f8265a4f49d4
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 #include "SlideShowPicture.h"
12 #include "guilib/GUIShaderDX.h"
14 #include <wrl/client.h>
16 class CTexture;
18 class CSlideShowPicDX : public CSlideShowPic
20 public:
21 CSlideShowPicDX() = default;
22 ~CSlideShowPicDX() override = default;
24 protected:
25 void Render(float* x, float* y, CTexture* pTexture, KODI::UTILS::COLOR::Color color) override;
27 private:
28 bool UpdateVertexBuffer(Vertex* vertices);
30 Microsoft::WRL::ComPtr<ID3D11Buffer> m_vb;