-
Notifications
You must be signed in to change notification settings - Fork 0
/
MediaReader.h
27 lines (22 loc) · 898 Bytes
/
MediaReader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
#pragma once
// MediaReader:
// This is a helper class for the SoundEffect class. It reads small audio files
// synchronously from the package installed folder and returns sound data as a
// byte array.
ref class MediaReader
{
internal:
MediaReader();
Platform::Array<byte>^ LoadMedia(_In_ Platform::String^ filename);
WAVEFORMATEX* GetOutputWaveFormatEx();
protected private:
Windows::Storage::StorageFolder^ m_installedLocation;
Platform::String^ m_installedLocationPath;
WAVEFORMATEX m_waveFormat;
};