Class YSKSoundInfo

Information on the audio.

This data may be needed when working with an audio, for example, for recording it to an audio file or when playing the audio using various players.

Instance Methods

Properties

channelCount

Number of channels.

sampleRate

Audio sample rate.

sampleSize

Bit depth, 1 or 2 bytes.

soundFormat

Audio format.

Method Detail

-initWithFormat:channelCount:sampleRate:sampleSize:

- (instancetype)initWithFormat:(YSKSoundFormat *)soundFormat
                  channelCount:(UInt32)channelCount
                    sampleRate:(UInt32)sampleRate
                    sampleSize:(UInt32)sampleSize 

Initializes an object of the YSKSoundInfo class.

This method is a designated initializer for the YSKSoundInfo class.
Parameters:
soundFormat

Audio format.

channelCount

Number of channels.

sampleRate

Audio sample rate.

sampleSize

Bit depth, 1 or 2 bytes.

Returns:

An object of the YSKSoundInfo class.

Property Detail

channelCount

(assign, readonly) UInt32 channelCount

Number of channels.

sampleRate

(assign, readonly) UInt32 sampleRate

Audio sample rate.

sampleSize

(assign, readonly) UInt32 sampleSize

Bit depth, 1 or 2 bytes.

soundFormat

(strong, readonly) YSKSoundFormat * soundFormat

Audio format.