初めまして。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のようでこれをファイルに書き込まず確認のために再生を行うようにしたいのですがどうしたらいいでしょうか。
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
55