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. | |
Audio Pasteboard reader.
Use this method to incrementally read the contents of the audio pasteboard
| + (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.
| buffer | The buffer to write to |
| ioFrames | On 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.
|
readwritenonatomicassign |
The client format to use for reading.
|
readnonatomicassign |
The original format of the clipboard audio.