チェンジセット 4597: as3/SiOPM/trunk/src/org

差分発生行の前後
無視リスト:
コミット日時:
2011/08/10 02:24:02 (10 ヶ月前)
コミッタ:
keim
ログメッセージ:

--

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/SiOPM/trunk/src/org/si/sion/SiONDriver.as

    r4594 r4597  
    104104    //---------------------------------------- 
    105105        /** version number */ 
    106         static public const VERSION:String = "0.6.4"; 
     106        static public const VERSION:String = "0.6.4.1"; 
    107107         
    108108         
  • as3/SiOPM/trunk/src/org/si/sion/module/SiOPMStream.as

    r4567 r4597  
    107107            var i:int, n:Number, imax:int = (start + len)<<1; 
    108108            vol *= _i2n; 
     109 
    109110            if (channels == 2) { 
    110111                // stereo 
  • as3/SiOPM/trunk/src/org/si/sion/module/SiOPMWavePCMData.as

    r4567 r4597  
    9090            srcChannelCount = (srcChannelCount == 1) ? 1 : 2; 
    9191            if (channelCount == 0) channelCount = srcChannelCount; 
     92            this.channelCount = (channelCount == 1) ? 1 : 2; 
    9293            if (data is Sound) { 
    9394                _listenSoundLoadingEvents(data as Sound); 
     
    102103            } 
    103104            this.samplingPitch = samplingPitch; 
    104             this.channelCount = (channelCount == 1) ? 1 : 2; 
    105105 
    106106            _startPoint = 0; 
  • as3/SiOPM/trunk/src/org/si/sion/module/channels/SiOPMChannelPCM.as

    r4594 r4597  
    410410            _sion_internal::registerMapType = 0 
    411411            _sion_internal::registerMapChannel = 0; 
    412             _outPipe2 = _chip.getPipe(3, _bufferIndex); 
     412            _outPipe2 = _chip.getPipe(3, bufferIndex); 
    413413            _filterVriables2[0] = _filterVriables2[1] = _filterVriables2[2] = 0; 
    414414            _samplePitchShift = 0; 
     
    545545                                ope._eg_shiftState(SiOPMOperator.EG_OFF); 
    546546                                ope._eg_out = (ope._eg_levelTable[ope._eg_level] + ope._eg_total_level)<<3; 
    547                                 for (;i<len; i++) op = op.next; 
     547                                for (;i<len; i++) { 
     548                                    op.i = 0; 
     549                                    op = op.next; 
     550                                } 
    548551                                break; 
    549552                            } else { 
     
    622625                                ope._eg_out = (ope._eg_levelTable[ope._eg_level] + ope._eg_total_level)<<3; 
    623626                                for (;i<len; i++) { 
     627                                    op.i = 0; 
     628                                    op2.i = 0; 
    624629                                    op  = op.next; 
    625630                                    op2 = op2.next; 
     
    681686            else if (pan > 128) pan = 128; 
    682687             
    683             if (_filterOn) _applySVFilter(_outPipe, len); 
     688            if (_filterOn) _applySVFilter(input, len); 
    684689            if (_hasEffectSend) { 
    685690                for (i=0; i<SiOPMModule.STREAM_SEND_SIZE; i++) { 
     
    704709             
    705710            if (_filterOn) { 
    706                 _applySVFilter(_outPipe, len, _filterVriables); 
    707                 _applySVFilter(_outPipe2, len, _filterVriables2); 
     711                _applySVFilter(inputL, len, _filterVriables); 
     712                _applySVFilter(inputR, len, _filterVriables2); 
    708713            } 
    709714            if (_hasEffectSend) { 
  • as3/SiOPM/trunk/src/org/si/sion/utils/PCMSample.as

    r4547 r4597  
    8989        public function get samples() : Vector.<Number> {  
    9090            if (_outputSampleRate == _sampleRate && _outputChannels == _channels) { 
    91 trace("get sample from raw sample"); 
     91//trace("get sample from raw sample"); 
    9292                return _samples; 
    9393            } 
    9494            if (_outputSampleRate == _cacheSampleRate && _outputChannels == _cacheChannels) { 
    95 trace("get sample from cache"); 
     95//trace("get sample from cache"); 
    9696                return _cache; 
    9797            } 
     
    9999            _cacheSampleRate = _outputSampleRate; 
    100100            _convertSampleRate(_samples, _channels, _sampleRate, _cache, _cacheChannels, _cacheSampleRate, true); 
    101 trace("get sample with convert"); 
     101//trace("get sample with convert"); 
    102102            return _cache; 
    103103        } 
     
    429429             
    430430            dst.length = int(src.length * dstch * dstsr / (srcch * srcsr)); 
    431 trace("convertSampleRate:", srcch, srcsr, src.length, dstch, dstsr, dst.length); 
     431//trace("convertSampleRate:", srcch, srcsr, src.length, dstch, dstsr, dst.length); 
    432432             
    433433            flag  = (srcch == 2) ? 1 : 0; 
     
    537537        // update samples from wave data 
    538538        private function _updateSampleFromWaveData() : void { 
    539 trace("_updateSampleFromWaveData"); 
     539//trace("_updateSampleFromWaveData"); 
    540540            var byteRate:int = _waveDataBitRate>>3; 
    541541            if (_waveDataChannels == _channels && _waveDataSampleRate == _sampleRate) { 
     
    575575        private function _updateWaveDataFromSamples() : void  
    576576        { 
    577 trace("_updateWaveDataFromSamples"); 
     577//trace("_updateWaveDataFromSamples"); 
    578578            var byteRate:int = _outputBitRate >> 3, 
    579579                output:Vector.<Number> = this.samples;