iphone - .caf file length differ ,even duration is same -
i have .wav sound file duration 5sec audio channel 2 , total bit rate 1411200. converting file .caf format via command on terminal. after file conversion give following info audio duration again same ( 5 sec), audio channel 1 , total bit rate 705600.
now .caf file keeps inside nsbundle. need recording same duration audio file , compare pre-recorded file. when ever nslog both(recorded , pre-recorded) sound nsdata length ,it gives large byte difference(approx. double).
i not understand why happen ,even both sound .caf file same duration. please me. in adv.
thanks sudesh
it depends on following factors of core audio format specification
struct cafaudioformat { float64 msamplerate; uint32 mformatid; uint32 mformatflags; uint32 mbytesperpacket; uint32 mframesperpacket; uint32 mchannelsperframe; uint32 mbitsperchannel; };
also check this states depending on above factor caf file length changes
Comments
Post a Comment