2012-08-09 09:45:04 +00:00
|
|
|
using System;
|
2011-10-31 05:36:24 +00:00
|
|
|
using System.IO;
|
2012-02-12 11:28:59 +00:00
|
|
|
using ANX.Framework.Audio;
|
2011-10-31 05:36:24 +00:00
|
|
|
using ANX.Framework.NonXNA;
|
2012-02-11 23:53:03 +00:00
|
|
|
using ANX.Framework.NonXNA.SoundSystem;
|
2011-10-31 05:36:24 +00:00
|
|
|
|
2012-08-09 09:45:04 +00:00
|
|
|
// This file is part of the ANX.Framework created by the
|
|
|
|
// "ANX.Framework developer group" and released under the Ms-PL license.
|
|
|
|
// For details see: http://anxframework.codeplex.com/license
|
2011-10-31 05:36:24 +00:00
|
|
|
|
|
|
|
namespace ANX.SoundSystem.Windows.XAudio
|
|
|
|
{
|
2012-02-11 23:53:03 +00:00
|
|
|
public class Creator : ISoundSystemCreator
|
|
|
|
{
|
2012-02-12 11:28:59 +00:00
|
|
|
#region Public
|
|
|
|
#region Name
|
2012-02-11 23:53:03 +00:00
|
|
|
public string Name
|
|
|
|
{
|
|
|
|
get { return "XAudio"; }
|
|
|
|
}
|
2012-02-12 11:28:59 +00:00
|
|
|
#endregion
|
2012-02-11 23:53:03 +00:00
|
|
|
|
2012-02-12 11:28:59 +00:00
|
|
|
#region Priority
|
2012-02-11 23:53:03 +00:00
|
|
|
public int Priority
|
|
|
|
{
|
|
|
|
get { return 10; }
|
|
|
|
}
|
2012-02-12 11:28:59 +00:00
|
|
|
#endregion
|
2012-02-11 23:53:03 +00:00
|
|
|
|
2012-02-12 11:28:59 +00:00
|
|
|
#region IsSupported
|
2012-02-11 23:53:03 +00:00
|
|
|
public bool IsSupported
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
//TODO: this is just a very basic version of test for support
|
2012-08-09 09:45:04 +00:00
|
|
|
return OSInformation.IsWindows;
|
2012-02-11 23:53:03 +00:00
|
|
|
}
|
|
|
|
}
|
2012-02-12 11:28:59 +00:00
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region RegisterCreator
|
|
|
|
public void RegisterCreator(AddInSystemFactory factory)
|
|
|
|
{
|
|
|
|
factory.AddCreator(this);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ISoundSystemCreator Member
|
2012-02-11 23:53:03 +00:00
|
|
|
|
|
|
|
public float DistanceScale
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
set
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public float DopplerScale
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
set
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public float MasterVolume
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
set
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public float SpeedOfSound
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
set
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-02-12 11:28:59 +00:00
|
|
|
public IAudioListener CreateAudioListener()
|
2012-02-11 23:53:03 +00:00
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
2012-02-12 11:28:59 +00:00
|
|
|
public IAudioEmitter CreateAudioEmitter()
|
2012-02-11 23:53:03 +00:00
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
2012-02-12 11:28:59 +00:00
|
|
|
public ISoundEffect CreateSoundEffect(SoundEffect parent, Stream stream)
|
2012-02-11 23:53:03 +00:00
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
2012-02-12 11:28:59 +00:00
|
|
|
public ISoundEffect CreateSoundEffect(SoundEffect parent, byte[] buffer, int offset, int count, int sampleRate, AudioChannels channels, int loopStart, int loopLength)
|
2012-02-11 23:53:03 +00:00
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
2012-02-12 11:28:59 +00:00
|
|
|
public ISoundEffectInstance CreateSoundEffectInstance(ISoundEffect nativeSoundEffect)
|
2012-02-11 23:53:03 +00:00
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
2012-02-12 11:28:59 +00:00
|
|
|
|
2012-02-11 23:53:03 +00:00
|
|
|
#endregion
|
|
|
|
}
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|