mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Replaced all copyright symbols with (c) to improve cross-platform reading Added classes to XFX::Audio namespace Added and updated classes in XFX::Graphics namespace Updated event function signature Replaced const char* ToString() with const String& ToString()
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
/*****************************************************************************
|
|
* AudioEngine.h *
|
|
* *
|
|
* XFX AudioEngine definition file *
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
*****************************************************************************/
|
|
#ifndef XFX_AUDIO_AUDIOENGINE_H
|
|
#define XFX_AUDIO_AUDIOENGINE_H
|
|
|
|
#include <System/String.h>
|
|
#include <System/TimeSpan.h>
|
|
|
|
using namespace System;
|
|
|
|
namespace XFX
|
|
{
|
|
namespace Audio
|
|
{
|
|
class AudioCategory;
|
|
|
|
class AudioEngine
|
|
{
|
|
protected:
|
|
virtual void Dispose(int disposing);
|
|
|
|
public:
|
|
const int ContentVersion; //XACT version supported
|
|
|
|
AudioEngine(); //Initialize the audio engine for direct wav play.
|
|
AudioEngine(String& settingsFile); //Initialize the audio engine for XACT
|
|
AudioEngine(String& settingsFile, TimeSpan lookAheadTime, String& rendererId);
|
|
|
|
void Dispose();
|
|
AudioCategory GetCategory(String& name);
|
|
float GetGlobalVariable(String& name);
|
|
void SetGlobalVariable(String& name, float value);
|
|
void Update();
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif // XFX_AUDIO_AUDIOENGINE_H
|