mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Added implicit conversion to base types to all primary types (UInt32 et al) Added implicit conversion from System::String to const char*
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
/********************************************************
|
|
* SoundEffect.h *
|
|
* *
|
|
* XFX::Audio::SoundEffect definition file *
|
|
* Copyright © XFX Team. All Rights Reserved *
|
|
********************************************************/
|
|
#ifndef _XFX_AUDIO_SOUNDEFFECT_
|
|
#define _XFX_AUDIO_SOUNDEFFECT_
|
|
|
|
#include <System/Interfaces.h>
|
|
#include <System/TimeSpan.h>
|
|
#include <System/IO/Stream.h>
|
|
#include "Enums.h"
|
|
|
|
using namespace System;
|
|
using namespace System::IO;
|
|
|
|
namespace XFX
|
|
{
|
|
namespace Audio
|
|
{
|
|
class SoundEffectInstance;
|
|
|
|
//
|
|
class SoundEffect : public IDisposable, public Object
|
|
{
|
|
private:
|
|
void Dispose(bool disposing);
|
|
|
|
public:
|
|
SoundEffect(byte buffer[], const int sampleRate, const AudioChannels_t numChannels);
|
|
SoundEffect(const SoundEffect &obj);
|
|
~SoundEffect();
|
|
|
|
SoundEffectInstance CreateInstance();
|
|
void Dispose();
|
|
static SoundEffect FromStream(Stream * const stream);
|
|
int GetType() const;
|
|
bool Play();
|
|
bool Play(const float volume, const float pitch, const float pan);
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //_XFX_AUDIO_SOUNDEFFECT_
|