2013-08-20 11:14:55 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Enums.h *
|
|
|
|
* *
|
|
|
|
* XFX::Audio enumerations definition file *
|
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _XFX_AUDIO_ENUMS_
|
|
|
|
#define _XFX_AUDIO_ENUMS_
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
{
|
|
|
|
namespace Audio
|
|
|
|
{
|
|
|
|
struct AudioChannels
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
// Indicates audio data is contained in one channel.
|
|
|
|
Mono = 1,
|
|
|
|
// Indicates audio data is contained in two channels.
|
|
|
|
Stereo = 2
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
struct AudioStopOptions
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
AsAuthored,
|
|
|
|
Immediate
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-06-02 14:32:43 +02:00
|
|
|
struct SoundState
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
// The SoundEffectInstance is playing.
|
|
|
|
Playing,
|
|
|
|
// The SoundEffectInstance is paused.
|
|
|
|
Paused,
|
|
|
|
// The SoundEffectInstance is stopped.
|
|
|
|
Stopped
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-05-05 18:18:41 +02:00
|
|
|
typedef AudioChannels::type AudioChannels_t; // Defines the number of audio channels in the audio data.
|
|
|
|
typedef AudioStopOptions::type AudioStopOptions_t; // Controls how Cue objects should stop when Cue::Stop is called.
|
2013-06-02 14:32:43 +02:00
|
|
|
typedef SoundState::type SoundState_t; // Current state (playing, paused, or stopped) of a SoundEffectInstance.
|
2013-05-05 18:18:41 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_XFX_AUDIO_ENUMS_
|