本文整理汇总了C#中Wrapper.GetAVInfo方法的典型用法代码示例。如果您正苦于以下问题:C# Wrapper.GetAVInfo方法的具体用法?C# Wrapper.GetAVInfo怎么用?C# Wrapper.GetAVInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Wrapper
的用法示例。
在下文中一共展示了Wrapper.GetAVInfo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadContent
/// <summary>
/// LoadContent will be called once per game and is the place to load
/// all of your content.
/// </summary>
protected override void LoadContent()
{
// Create a new SpriteBatch, which can be used to draw textures.
spriteBatch = new SpriteBatch(GraphicsDevice);
_libretro = new Wrapper(_core);
_libretro.Init();
_libretro.LoadGame("smw.sfc");
_avinfo = _libretro.GetAVInfo();
_frameBuffer = new Texture2D(GraphicsDevice, (int)_avinfo.geometry.base_width, (int)_avinfo.geometry.base_height);
_sampleRate = (int)_libretro.GetAVInfo().timing.sample_rate;
_audioBuffer = new byte[_channels * _bufferSize * bytesPerSample];
_workingBuffer = new float[_channels, _bufferSize];
sound = new SoundEffect(_audioBuffer, _sampleRate, AudioChannels.Stereo);
}