Commit 9a7e5740 authored by jehan's avatar jehan
Browse files

dont allow msaudiounit to change sampling frequency at startup

parent f4b7da64
......@@ -625,7 +625,7 @@ static void au_write_preprocess(MSFilter *f){
AudioStreamBasicDescription audioFormat;
/*card samplingrate is fixed a that time*/
audioFormat.mSampleRate = card->rate=ms_snd_card_get_preferred_sample_rate(card->ms_snd_card);
audioFormat.mSampleRate = card->rate;
audioFormat.mFormatID = kAudioFormatLinearPCM;
audioFormat.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
audioFormat.mFramesPerPacket = 1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment