Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for compiling on Windows 8 and Windows Phone 8 #1158

Merged
merged 1 commit into from Jan 6, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions MonoGame.Framework/Audio/SoundEffect.cs
Expand Up @@ -108,11 +108,13 @@ internal SoundEffect(string name, byte[] data)

internal SoundEffect(Stream s)
{
#if !WINRT
var data = new byte[s.Length];
s.Read(data, 0, (int)s.Length);

_data = data;
_sound = new Sound(_data, 1.0f, false);
#endif
}

public SoundEffect(byte[] buffer, int sampleRate, AudioChannels channels)
Expand Down