mattgallagher / AudioStreamer

A streaming audio player class (AudioStreamer) for Mac OS X and iPhone.
http://cocoawithlove.com
1.93k stars 553 forks source link

Audio packets are larger than kAQDefaultBufSize. #52

Open coanag opened 11 years ago

coanag commented 11 years ago

I use Matt gallagher 's audio streamer. When replace the usrl with mine i get "Audio packets are larger than kAQDefaultBufSize." Can it be tweaked or has something to do with the stream im using? Any suggestions.

Thank you

mattgallagher commented 11 years ago

Exactly as the message states: you need to increase the size of the kAQDefaultBufSize to handle the audio you're trying to play.

coanag commented 11 years ago

Can you recommend size? Now is 2048 , i tried 3072 but get same error.

coanag commented 11 years ago

The solution to my problem was changing AudioStreamer.m // hintForFileExtension line 574 from "kAudioFileAAC_ADTSType" to "kAudioFileMP3Type"

My stream is at 128 kbps

zzolrac commented 11 years ago

that solution works for me thanks a lot

chujiandaochuxia commented 5 years ago

我的问题的解决方案是将AudioStreamer.m // hintForFileExtension 第574行从“kAudioFileAAC_ADTSType”更改为“kAudioFileMP3Type”

我的流速为128 kbps

非常感谢 这解决了我的问题