pub struct SndFile { /* private fields */ }
Expand description

Main struct of this crate.

Implementations

Get sample rate.

Return values should be greater than zero.

Get channel count.

Return values should be greater than zero.

Get audio container format

Get audio encoding format

Get audio file endian

Usually returns Endian::File

Check if this file seekable

If not, many functions like len or read_all_to_vec will return an error.

Useful if you want to do something unsafe.

Get tag string, e.g., artist, album, etc.

Set tag string

Modify the I/O cursor.

Get the length of audio file.

This function may affect the I/O cursor.

Trait Implementations

Formats the value using the given formatter. Read more

Read frames from current I/O cursor, returns the number of frames read if success. Read more

Read frames from file, returns the number of frames written if success. Read more

Read all frames into a Vec<_> if success. Read more

Read frames from current I/O cursor, returns the number of frames read if success. Read more

Read frames from file, returns the number of frames written if success. Read more

Read frames from current I/O cursor, returns the number of frames read if success. Read more

Read frames from file, returns the number of frames written if success. Read more

Read all frames into a Vec<_> if success. Read more

Read frames from current I/O cursor, returns the number of frames read if success. Read more

Read frames from file, returns the number of frames written if success. Read more

Read frames from current I/O cursor, returns the number of frames read if success. Read more

Read frames from file, returns the number of frames written if success. Read more

Read all frames into a Vec<_> if success. Read more

Read frames from current I/O cursor, returns the number of frames read if success. Read more

Read frames from file, returns the number of frames written if success. Read more

Read frames from current I/O cursor, returns the number of frames read if success. Read more

Read frames from file, returns the number of frames written if success. Read more

Read all frames into a Vec<_> if success. Read more

Read frames from current I/O cursor, returns the number of frames read if success. Read more

Read frames from file, returns the number of frames written if success. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.