チェンジセット 4597: as3/SiOPM/trunk/src/org
- コミット日時:
- 2011/08/10 02:24:02 (10 ヶ月前)
- ファイル:
-
- as3/SiOPM/trunk/src/org/si/sion/SiONDriver.as (更新) (1 diff)
- as3/SiOPM/trunk/src/org/si/sion/module/SiOPMStream.as (更新) (1 diff)
- as3/SiOPM/trunk/src/org/si/sion/module/SiOPMWavePCMData.as (更新) (2 diffs)
- as3/SiOPM/trunk/src/org/si/sion/module/channels/SiOPMChannelPCM.as (更新) (5 diffs)
- as3/SiOPM/trunk/src/org/si/sion/utils/PCMSample.as (更新) (5 diffs)
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/SiOPM/trunk/src/org/si/sion/SiONDriver.as
r4594 r4597 104 104 //---------------------------------------- 105 105 /** version number */ 106 static public const VERSION:String = "0.6.4 ";106 static public const VERSION:String = "0.6.4.1"; 107 107 108 108 as3/SiOPM/trunk/src/org/si/sion/module/SiOPMStream.as
r4567 r4597 107 107 var i:int, n:Number, imax:int = (start + len)<<1; 108 108 vol *= _i2n; 109 109 110 if (channels == 2) { 110 111 // stereo as3/SiOPM/trunk/src/org/si/sion/module/SiOPMWavePCMData.as
r4567 r4597 90 90 srcChannelCount = (srcChannelCount == 1) ? 1 : 2; 91 91 if (channelCount == 0) channelCount = srcChannelCount; 92 this.channelCount = (channelCount == 1) ? 1 : 2; 92 93 if (data is Sound) { 93 94 _listenSoundLoadingEvents(data as Sound); … … 102 103 } 103 104 this.samplingPitch = samplingPitch; 104 this.channelCount = (channelCount == 1) ? 1 : 2;105 105 106 106 _startPoint = 0; as3/SiOPM/trunk/src/org/si/sion/module/channels/SiOPMChannelPCM.as
r4594 r4597 410 410 _sion_internal::registerMapType = 0 411 411 _sion_internal::registerMapChannel = 0; 412 _outPipe2 = _chip.getPipe(3, _bufferIndex);412 _outPipe2 = _chip.getPipe(3, bufferIndex); 413 413 _filterVriables2[0] = _filterVriables2[1] = _filterVriables2[2] = 0; 414 414 _samplePitchShift = 0; … … 545 545 ope._eg_shiftState(SiOPMOperator.EG_OFF); 546 546 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 } 548 551 break; 549 552 } else { … … 622 625 ope._eg_out = (ope._eg_levelTable[ope._eg_level] + ope._eg_total_level)<<3; 623 626 for (;i<len; i++) { 627 op.i = 0; 628 op2.i = 0; 624 629 op = op.next; 625 630 op2 = op2.next; … … 681 686 else if (pan > 128) pan = 128; 682 687 683 if (_filterOn) _applySVFilter( _outPipe, len);688 if (_filterOn) _applySVFilter(input, len); 684 689 if (_hasEffectSend) { 685 690 for (i=0; i<SiOPMModule.STREAM_SEND_SIZE; i++) { … … 704 709 705 710 if (_filterOn) { 706 _applySVFilter( _outPipe,len, _filterVriables);707 _applySVFilter( _outPipe2, len, _filterVriables2);711 _applySVFilter(inputL, len, _filterVriables); 712 _applySVFilter(inputR, len, _filterVriables2); 708 713 } 709 714 if (_hasEffectSend) { as3/SiOPM/trunk/src/org/si/sion/utils/PCMSample.as
r4547 r4597 89 89 public function get samples() : Vector.<Number> { 90 90 if (_outputSampleRate == _sampleRate && _outputChannels == _channels) { 91 trace("get sample from raw sample");91 //trace("get sample from raw sample"); 92 92 return _samples; 93 93 } 94 94 if (_outputSampleRate == _cacheSampleRate && _outputChannels == _cacheChannels) { 95 trace("get sample from cache");95 //trace("get sample from cache"); 96 96 return _cache; 97 97 } … … 99 99 _cacheSampleRate = _outputSampleRate; 100 100 _convertSampleRate(_samples, _channels, _sampleRate, _cache, _cacheChannels, _cacheSampleRate, true); 101 trace("get sample with convert");101 //trace("get sample with convert"); 102 102 return _cache; 103 103 } … … 429 429 430 430 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); 432 432 433 433 flag = (srcch == 2) ? 1 : 0; … … 537 537 // update samples from wave data 538 538 private function _updateSampleFromWaveData() : void { 539 trace("_updateSampleFromWaveData");539 //trace("_updateSampleFromWaveData"); 540 540 var byteRate:int = _waveDataBitRate>>3; 541 541 if (_waveDataChannels == _channels && _waveDataSampleRate == _sampleRate) { … … 575 575 private function _updateWaveDataFromSamples() : void 576 576 { 577 trace("_updateWaveDataFromSamples");577 //trace("_updateWaveDataFromSamples"); 578 578 var byteRate:int = _outputBitRate >> 3, 579 579 output:Vector.<Number> = this.samples;

