¡@

Home 

2014/10/15 ¤U¤È 10:03:35

iphone Programming Glossary: ampscale

Audio Processing: Playing with volume level

http://stackoverflow.com/questions/3982723/audio-processing-playing-with-volume-level

fileSize inData Float32 outData malloc fileSize sizeof Float32 Art's suggestion if I've correctly understood him float ampScale 0.5f this will reduce the 'volume' by 6db for int i 0 i fileSize i outData i Float32 inData i ampScale AudioStreamBasicDescription.. him float ampScale 0.5f this will reduce the 'volume' by 6db for int i 0 i fileSize i outData i Float32 inData i ampScale AudioStreamBasicDescription outDataFormat 0 self audioDataFormat inFileID AudioFileID outFileID CFURLRef outURL self outSoundURL.. use ExtAudioFile to convert whatever you read into 32 bit floats. To change the amplitude you simply multiply float ampScale 0.5f this will reduce the 'volume' by 6db for int ii 0 ii numSamples ii sampOut sampIn ampScale sampOut sampIn To increase..