public OneWayHcaAudioStream(Stream sourceStream, DecodeParams decodeParams, bool outputWaveHeader)
     : base(sourceStream, decodeParams)
 {
     _decoder         = new OneWayHcaDecoder(sourceStream, decodeParams);
     OutputWaveHeader = outputWaveHeader;
     _state           = HcaAudioStreamDecodeState.Initialized;
 }
Esempio n. 2
0
 public HcaDecoder(Stream sourceStream, DecodeParams decodeParams)
     : base(sourceStream)
 {
     _decodeParams = decodeParams;
     HcaHelper.TranslateTables();
     _ath    = new Ath();
     _cipher = new Cipher();
     Initialize();
 }
Esempio n. 3
0
        public HcaAudioStream(Stream baseStream, DecodeParams decodeParams, AudioParams audioParams)
            : base(baseStream, decodeParams)
        {
            var decoder = new HcaDecoder(baseStream, decodeParams);

            _decoder     = decoder;
            _audioParams = audioParams;
            var buffer = new byte[GetTotalAfterDecodingWaveDataSize()];

            _memoryCache   = new MemoryStream(buffer, true);
            _decodedBlocks = new Dictionary <long, long>();
            _decodeBuffer  = new byte[decoder.GetMinWaveDataBufferSize()];
            _hasLoop       = decoder.HcaInfo.LoopFlag;

            PrepareDecoding();
        }
Esempio n. 4
0
 protected HcaAudioStreamBase(Stream sourceStream, DecodeParams decodeParams)
 {
     _decodeParams = decodeParams;
 }
Esempio n. 5
0
 protected HcaAudioStreamBase(Stream baseStream, DecodeParams decodeParams)
 {
     BaseStream    = baseStream;
     _decodeParams = decodeParams;
 }
 public OneWayHcaAudioStream(Stream sourceStream, DecodeParams decodeParams)
     : this(sourceStream, decodeParams, true)
 {
 }
Esempio n. 7
0
 public HcaAudioStream(Stream baseStream, DecodeParams decodeParams)
     : this(baseStream, decodeParams, AudioParams.Default)
 {
 }
 public OneWayHcaDecoder(Stream sourceStream, DecodeParams decodeParams)
     : base(sourceStream, decodeParams)
 {
 }