LoginSignup
5
5

More than 5 years have passed since last update.

Xamarin Monoでのbyte配列MP3の再生

Last updated at Posted at 2014-05-08

初めまして。C#とXamarinでMacのプログラムを開発していましたがどうしても行き詰ってしまったので初めて投稿してみました。
Swfの解析を行っていたのですが,MonoMacでSwf2Xna(https://github.com/debreuil/Swf2XNA)
というライブラリを使って以下のようなコードを書いてました
csharp
var reader = new SwfReader(Swfのファイル名);
var swf = new SwfCompilationUnit(reader);
var lstSound = swf.Tags.FindAll(x => x.TagType == TagType.DefineSound);
var tagData = lstSound[3];
var soundData = tagData as DefineSoundTag;
byte[] myByteArray = soundData.SoundData;

ここで確認したところ、myByteArrayはMP3のようでこれをファイルに書き込まず確認のために再生を行うようにしたいのですがどうしたらいいでしょうか。

5
5
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5