diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:53:50 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:53:50 -0600 |
commit | f64397c82fa94371ab4a64af28c4d0029f4cd93f (patch) | |
tree | cdb72f3faadbcebe60088800f27df1ec23ad15d8 /khotkeys/shared/sound.cpp | |
parent | 628043be55ddd2f534411d028e4f68c8fe4eaabb (diff) | |
download | tdebase-f64397c82fa94371ab4a64af28c4d0029f4cd93f.tar.gz tdebase-f64397c82fa94371ab4a64af28c4d0029f4cd93f.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'khotkeys/shared/sound.cpp')
-rw-r--r-- | khotkeys/shared/sound.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/khotkeys/shared/sound.cpp b/khotkeys/shared/sound.cpp index 5b99a1cba..393b02f46 100644 --- a/khotkeys/shared/sound.cpp +++ b/khotkeys/shared/sound.cpp @@ -93,7 +93,7 @@ void Sound::load(const TQString& filename) TQ_INT32 nb=0; for(uint k=0;k<BytePS;k++) { - nb |= (SoundData.tqat(f*BytePS+k)&0x000000FF) << (k*8); + nb |= (SoundData.at(f*BytePS+k)&0x000000FF) << (k*8); } if(nb & (1 << (BytePS*8 -1)) ) nb = nb-(1<<BytePS*8); @@ -129,11 +129,11 @@ void Sound::save(const TQString& filename) const for(unsigned long int f=0;f<data.size();f++) { - TQ_UINT16 val= (signed short int) ( (data.tqat(f) * ((double)(1<<13)/(signed)max) ) ); - SoundData.tqat( 2*f )= val & 0x00FF; - SoundData.tqat(2*f+1)= (val & 0xFF00) >> 8; + TQ_UINT16 val= (signed short int) ( (data.at(f) * ((double)(1<<13)/(signed)max) ) ); + SoundData.at( 2*f )= val & 0x00FF; + SoundData.at(2*f+1)= (val & 0xFF00) >> 8; -// kdDebug( 1217 ) << k_funcinfo << data.tqat(f) << " / " << max << " = " << val << " | " << SoundData[ 2*f ] << " "<< SoundData[ 2*f+1 ] << endl; +// kdDebug( 1217 ) << k_funcinfo << data.at(f) << " / " << max << " = " << val << " | " << SoundData[ 2*f ] << " "<< SoundData[ 2*f+1 ] << endl; } TQ_UINT16 NumberOfChannels=2; |