AEAudioPasteboardReader Class Reference

Audio Pasteboard reader. More...

#import <AEAudioPasteboard.h>

Inherits NSObject.

Instance Methods

(void) - readIntoBuffer:length:
 Read the next piece of audio into the given buffer.
 
(void) - reset
 Reset the reader to the beginning of the clipboard contents.
 

Class Methods

(instancetype) + readerForGeneralPasteboardItem
 Create an instance for reading.
 

Properties

AudioStreamBasicDescription clientFormat
 The client format to use for reading.
 
AudioStreamBasicDescription originalFormat
 The original format of the clipboard audio.
 

Detailed Description

Audio Pasteboard reader.

Use this method to incrementally read the contents of the audio pasteboard

Method Documentation

+ (instancetype) readerForGeneralPasteboardItem

Create an instance for reading.

- (void) readIntoBuffer: (AudioBufferList *)  buffer
length: (UInt32 *)  ioFrames 

Read the next piece of audio into the given buffer.

When the reader reaches the end of the audio on the pasteboard, ioFrames will contain a value less than the requested number of frames, or zero on the next call.

Parameters
bufferThe buffer to write to
ioFramesOn input, the number of frames to write; on output, number of frames written
- (void) reset

Reset the reader to the beginning of the clipboard contents.

Property Documentation

- (AudioStreamBasicDescription) clientFormat
readwritenonatomicassign

The client format to use for reading.

- (AudioStreamBasicDescription) originalFormat
readnonatomicassign

The original format of the clipboard audio.


The documentation for this class was generated from the following file: