-
Notifications
You must be signed in to change notification settings - Fork 45
/
AudioEngineWrapper.cs
30 lines (21 loc) · 1.02 KB
/
AudioEngineWrapper.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Decompiled with JetBrains decompiler
// Type: StardewValley.AudioEngineWrapper
// Assembly: Stardew Valley, Version=1.5.6.22018, Culture=neutral, PublicKeyToken=null
// MVID: BEBB6D18-4941-4529-AC12-B54F0C61CC20
// Assembly location: C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Stardew Valley.dll
using Microsoft.Xna.Framework.Audio;
using System;
namespace StardewValley
{
internal class AudioEngineWrapper : IAudioEngine, IDisposable
{
private AudioEngine audioEngine;
public AudioEngineWrapper(AudioEngine engine) => this.audioEngine = engine;
public bool IsDisposed => this.audioEngine.IsDisposed;
public void Dispose() => this.audioEngine.Dispose();
public IAudioCategory GetCategory(string name) => (IAudioCategory) new AudioCategoryWrapper(this.audioEngine.GetCategory(name));
public int GetCategoryIndex(string name) => this.audioEngine.GetCategoryIndex(name);
public void Update() => this.audioEngine.Update();
public AudioEngine Engine => this.audioEngine;
}
}