1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Audio/SoundEffect.h
Halofreak1990 40c4811c04 Got everything to compile again.
Began transforming of current API to represent XNA 4.0, which is cleaner.
Dictionary<TKey, TValue> should now work (sort of-- need to implement resizing and enumerating)
Currently hunting down GraphicsDevice initialization
Up next: (hopefully successful) rendering of primitives
2012-09-28 20:36:02 +00:00

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_