Changeset 638
- Timestamp:
- 11/08/08 15:00:54 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/new_fx_rack_and_sample_fun/gui/src/ExportSongDialog.cpp
r625 r638 136 136 m_pProgressBar->setValue( nValue ); 137 137 if ( nValue == 100 ) { 138 //INFOLOG("SONO A 100"); 139 140 Hydrogen::get_instance()->stopExportSong(); 141 m_bExporting = false; 142 QFile check( exportNameTxt->text() ); 143 if ( ! check.exists() ) { 144 QMessageBox::information( this, "Hydrogen", trUtf8("Export failed!") ); 145 } 138 //INFOLOG("SONO A 100"); 139 140 Hydrogen::get_instance()->stopExportSong(); 141 m_bExporting = false; 142 QFile check( exportNameTxt->text() ); 143 if ( ! check.exists() ) { 144 QMessageBox::information( this, "Hydrogen", trUtf8("Export failed!") ); 145 } 146 accept(); 146 147 } 147 accept();148 148 } branches/new_fx_rack_and_sample_fun/gui/src/SampleEditor/DetailWaveDisplay.cpp
r637 r638 128 128 if ( pNewSample ) { 129 129 130 int m _pSampleLenght = pNewSample->get_n_frames();130 int mSampleLenght = pNewSample->get_n_frames(); 131 131 132 m_pPeakDatal = new int[ m _pSampleLenght + m_pnormalimagedetailframes /2 ];133 m_pPeakDatar = new int[ m _pSampleLenght + m_pnormalimagedetailframes /2 ];132 m_pPeakDatal = new int[ mSampleLenght + m_pnormalimagedetailframes /2 ]; 133 m_pPeakDatar = new int[ mSampleLenght + m_pnormalimagedetailframes /2 ]; 134 134 135 for ( int i = 0 ; i < m _pSampleLenght + m_pnormalimagedetailframes /2 ; i++){135 for ( int i = 0 ; i < mSampleLenght + m_pnormalimagedetailframes /2 ; i++){ 136 136 m_pPeakDatal[ i ] = 0; 137 137 m_pPeakDatar[ i ] = 0; … … 141 141 142 142 float *pSampleDatal = pNewSample->get_data_l(); 143 float *pSampleDatar = pNewSample->get_data_r(); 143 144 144 145 int nSamplePos =0; 145 146 // int nVall; 146 for ( int i = 0; i < m _pSampleLenght; i++ ){147 for ( int i = 0; i < mSampleLenght; i++ ){ 147 148 m_pPeakDatal[ i ] = (int)( pSampleDatal[ i ] * fGain ); 149 m_pPeakDatar[ i ] = (int)( pSampleDatar[ i ] * fGain ); 148 150 } 149 151 150 float *pSampleDatar = pNewSample->get_data_r();151 152 nSamplePos = 0;153 // int nValr;154 155 for ( int i = 0; i < m_pSampleLenght; i++ ){156 m_pPeakDatar[ i ] = (int)( pSampleDatar[ i ] * fGain );157 }158 152 159 153 } branches/new_fx_rack_and_sample_fun/gui/src/SampleEditor/DetailWaveDisplay.h
r637 r638 53 53 int m_pnormalimagedetailframes; 54 54 float m_pzoomFactor; 55 int m_pSampleLenght;56 55 QString m_ptype; 57 56 };
