2024-05-27 21:12:46 -03:00
|
|
|
#ifndef XNA_AUDIO_READERS_SOUNDEFFECT_HPP
|
|
|
|
#define XNA_AUDIO_READERS_SOUNDEFFECT_HPP
|
|
|
|
|
|
|
|
#include "content/manager.hpp"
|
|
|
|
#include "content/reader.hpp"
|
|
|
|
#include "csharp/type.hpp"
|
|
|
|
#include "audio/soundeffect.hpp"
|
|
|
|
|
|
|
|
namespace xna {
|
|
|
|
class SoundEffectReader : public ContentTypeReaderT<PSoundEffect> {
|
|
|
|
public:
|
|
|
|
SoundEffectReader() : ContentTypeReaderT(typeof<SoundEffect>()) {}
|
|
|
|
|
|
|
|
PSoundEffect Read(ContentReader& input, PSoundEffect& existingInstance) override {
|
2024-05-28 09:06:10 -03:00
|
|
|
const auto count1 = input.ReadInt32();
|
|
|
|
auto format = input.ReadBytes(count1);
|
|
|
|
auto count2 = input.ReadInt32();
|
|
|
|
auto data = input.ReadBytes(count2);
|
|
|
|
auto loopStart = input.ReadInt32();
|
|
|
|
auto loopLength = input.ReadInt32();
|
|
|
|
auto num = input.ReadInt32();
|
2024-05-27 21:12:46 -03:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|