English 中文(简体)
音像制品三流和缓冲
原标题:AudioQueue trimming and buffer size

尽管申请按预期运作,但我还是想更详细地了解奥洛尔语。

设置如下。 设立了一个AVAudioPlayer,并装上了1.m4a文档(03:22长,618KB大小)。 卷宗的比照率为23千位。 我认识到,借方率很低,但申请是可以接受的。

每当我调整音响演员的时日财产时,我收到以下电文,贴上ole子。

AudioQueue: request to trim 2112 + 0 = 2112 frames from buffer containing 1024 frames

设定当前财产的结果是预期的,但我想知道,这一信息究竟是什么意思,我可以做些什么来防止它出现。

问题回答

为我工作:在确定其现状之前停止角色 时间财产。 然后确定时间、准备和游戏。

[avAudioPlayer stop];
[avAudioPlayer setCurrentTime:newCurrentTime];
[avAudioPlayer prepareToPlay];
[avAudioPlayer play];

来源:http://eureka.ykyuen.info 201006/10/iphone-add-an-uislider-for-avaudioplayer/





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签