Class YSKSoundBuffer

The class contains a data buffer and information on the audio.

Instance Methods

-initWithData:soundInfo:

Initializes an object of the YSKSoundBuffer class.

Class Methods

Properties

data

Data buffer.

soundInfo

Information on the audio.

Method Detail

-initWithData:soundInfo:

- (instancetype)initWithData:(NSData *)data
                   soundInfo:(YSKSoundInfo *)soundInfo 

Initializes an object of the YSKSoundBuffer class.

This method is a designated initializer for the YSKSoundBuffer class.
Parameters:
data

Data buffer.

soundInfo

Information on the audio.

Returns:

An object of the YSKSoundBuffer class.

+pcmSoundBufferWithOpusFile:

+ (nullable instancetype)pcmSoundBufferWithOpusFile:(opus(path:))NS_SWIFT_NAME 

+pcmSoundBufferWithWavFile:

+ (nullable instancetype)pcmSoundBufferWithWavFile:(wav(path:))NS_SWIFT_NAME 

Property Detail

data

(strong, readonly) NSData * data

Data buffer.

soundInfo

(strong, readonly) YSKSoundInfo * soundInfo

Information on the audio.