Platforms to show: All Mac Windows Linux Cross-Platform

Back to SoundFileMBS class.

SoundFileMBS.Close

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Closes file now.

Same as destructor, but you can call it early.

SoundFileMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Private constructor.

SoundFileMBS.GetString(type as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries one of the strings.

See kString* constants.
Returns "" in case of error.

SoundFileMBS.ReadDouble(p as ptr, items as Int64) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Reads data as double values, converts if necessary.

Pointer should point to memmoryblock with 8 * Items in size.
Returns number of items read.

SoundFileMBS.ReadDoubleFrames(p as ptr, items as Int64) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Reads frames as double values, converts if necessary.

Pointer should point to memmoryblock with 8 * Items * Channels in size.
Returns number of items read.

SoundFileMBS.ReadInt(p as ptr, items as Int64) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Reads data as Int32 values, converts if necessary.

Pointer should point to memmoryblock with 4 * Items in size.
Returns number of items read.

SoundFileMBS.ReadIntFrames(p as ptr, items as Int64) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Reads frames as Int32 values, converts if necessary.

Pointer should point to memmoryblock with 4 * Items * Channels in size.
Returns number of items read.

SoundFileMBS.ReadRaw(p as ptr, bytes as Int64) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Read raw data.

Pointer should point to memmoryblock with Bytes in size.
Returns number of bytes read.

SoundFileMBS.ReadShort(p as ptr, items as Int64) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Reads data as Int16 values, converts if necessary.

Pointer should point to memmoryblock with 2 * Items in size.
Returns number of items read.

SoundFileMBS.ReadShortFrames(p as ptr, items as Int64) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Reads frames as Int16 values, converts if necessary.

Pointer should point to memmoryblock with 2 * Items * Channels in size.
Returns number of items read.

SoundFileMBS.ReadSingle(p as ptr, items as Int64) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Reads data as single values, converts if necessary.

Pointer should point to memmoryblock with 4 * Items in size.
Returns number of items read.

SoundFileMBS.ReadSingleFrames(p as ptr, items as Int64) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Reads frames as single values, converts if necessary.

Pointer should point to memmoryblock with 4 * Items * Channels in size.
Returns number of items read.

Some examples using this method:

SoundFileMBS.Seek(frames as Int64, whence as Integer) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Seeks within the audio file.

See kSeek* constants for whence parameter.

SoundFileMBS.SetString(type as Integer, data as Memoryblock) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets one of the strings.

See kString* constants.
Returns zero on success.

See also:

SoundFileMBS.SetString(type as Integer, text as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets one of the strings.

See kString* constants.
Returns zero on success.

See also:

The items on this page are in the following plugins: MBS Tools Plugin.


The biggest plugin in space...