writing streaming audio to File
writing streaming audio to File
- Subject: writing streaming audio to File
- From: sheen mac <email@hidden>
- Date: Mon, 30 Jul 2007 10:28:57 -0700 (PDT)
Hi All,
I am getting continuous audio data from network and I tried to save
it to file based on the RecordAudioToFile sample code.But it getting
crash wile saving.I got this report in Log.
Unable to restore previously selected frame:
Unable to restore previously selected frame:
Unable to restore previously selected frame:
Cannot access memory at address 0x4
Cannot access memory at address 0x4
Unable to disassemble objc_msgSend_rtp.
This is the Audio Stream basic description I am getting from network.I set
this format as kExtAudioFileProperty_ClientDataFormat for the audio file
input.
fOutputFormat.mSampleRate = 44100;
fOutputFormat.mFormatID = kAudioFormatLinearPCM;
fOutputFormat.mFormatFlags = kAudioFormatFlagIsBigEndian | kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
fOutputFormat.mBytesPerPacket
= fOutputFormat.mBytesPerFrame = fDeviceFormat.mChannelsPerFrame * sizeof(SInt16);
fOutputFormat.mFramesPerPacket = 1;
fOutputFormat.mChannelsPerFrame = fDeviceFormat.mChannelsPerFrame;
fOutputFormat.mBitsPerChannel = 16;
Kindly help me.
Thanks In
Advance,
Sheen
Looking for a deal?
Find great prices on flights and hotels with Yahoo! FareChase.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden