Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getPropertyWithClass Problem



I have an app that records audio using code copied from WhackedTV. I changed the code in the way that the input level is asked and shown permanently while recording.
This works fine most of the time. but every 5th or 10th time I press startrecord, the input generates noise on a may Level. 
After a long search I noticed that, in DeviceChannelStrip, the call to getPropertyWithClass:
    
        err= [self getPropertyWithClass:kQTPropertyClass_SGAudioRecordDevice 
                                    id:kQTSGAudioPropertyID_AveragePowerLevels 
                                    size:mLevelsArraySize 
                                    address:mLevelsArray sizeUsed:NULL];

returns positive values of about 10.0 in the mLevelArray. err is always returned as noErr. Normally these values are negative in the range of -0. to -255.0.

What is going wrong? 
iBook G4 1.33 GHz, OS 10.4.6, Xcode2.2 (Cannot upgrade to 2.3 because of compatibility to my many iMacs not upgradeable to tiger)

Thanks for every help. I use this app every day at school for training my kids in reading, but this is very annoying.
Ruedi Heimlicher

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.