AudioQueue.AddListener 方法

定义

使用此方法跟踪对音频队列属性的更改。

public AudioToolbox.AudioQueueStatus AddListener (AudioToolbox.AudioQueueProperty property, AudioToolbox.AudioQueue.AudioQueuePropertyChanged callback);
member this.AddListener : AudioToolbox.AudioQueueProperty * AudioToolbox.AudioQueue.AudioQueuePropertyChanged -> AudioToolbox.AudioQueueStatus

参数

property
AudioQueueProperty

要侦听的属性的 ID。

callback
AudioQueue.AudioQueuePropertyChanged

在指定的 AudioQueue 属性更改时调用的方法。

返回

状态代码。

适用于