libsf3
|
#include "sf3_core.h"
Go to the source code of this file.
Data Structures | |
struct | sf3_audio |
Macros | |
#define | SF3_FORMAT_ID_AUDIO 0x02 |
The format_id for an audio file. | |
Enumerations | |
enum | sf3_audio_format { SF3_SAMPLE_ALAW = 0x01 , SF3_SAMPLE_INT16 = 0x02 , SF3_SAMPLE_INT32 = 0x04 , SF3_SAMPLE_INT64 = 0x08 , SF3_SAMPLE_ULAW = 0x11 , SF3_SAMPLE_UINT16 = 0x12 , SF3_SAMPLE_UINT32 = 0x14 , SF3_SAMPLE_UINT64 = 0x18 , SF3_SAMPLE_FLOAT16 = 0x22 , SF3_SAMPLE_FLOAT32 = 0x24 , SF3_SAMPLE_FLOAT64 = 0x28 } |
The possible audio sample formats. More... | |
Functions | |
SF3_INLINE int | sf3_audio_sample_size (const struct sf3_audio *audio) |
Returns the number of bytes per audio sample. | |
SF3_INLINE int | sf3_audio_frame_size (const struct sf3_audio *audio) |
Returns the number of bytes per audio frame. | |
SF3_INLINE int | sf3_audio_sample_count (const struct sf3_audio *audio) |
Returns the total number of samples of audio stored. | |
SF3_INLINE float | sf3_audio_duration (const struct sf3_audio *audio) |
Returns the duration of the audio data in seconds. | |
SF3_EXPORT char * | sf3_audio_format (enum sf3_audio_format format) |
Returns a string descriptor of the format type. | |
SF3_EXPORT size_t | sf3_audio_size (const struct sf3_audio *audio) |
Computes the size of the audio file in bytes. | |
#define SF3_FORMAT_ID_AUDIO 0x02 |
The format_id for an audio file.
Definition at line 6 of file sf3_audio.h.
enum sf3_audio_format |
The possible audio sample formats.
Definition at line 9 of file sf3_audio.h.
SF3_INLINE float sf3_audio_duration | ( | const struct sf3_audio * | audio | ) |
Returns the duration of the audio data in seconds.
Definition at line 70 of file sf3_audio.h.
SF3_EXPORT char * sf3_audio_format | ( | enum sf3_audio_format | format | ) |
Returns a string descriptor of the format type.
Definition at line 75 of file sf3_audio.h.
SF3_INLINE int sf3_audio_frame_size | ( | const struct sf3_audio * | audio | ) |
Returns the number of bytes per audio frame.
Definition at line 60 of file sf3_audio.h.
SF3_INLINE int sf3_audio_sample_count | ( | const struct sf3_audio * | audio | ) |
Returns the total number of samples of audio stored.
Definition at line 65 of file sf3_audio.h.
SF3_INLINE int sf3_audio_sample_size | ( | const struct sf3_audio * | audio | ) |
Returns the number of bytes per audio sample.
Definition at line 55 of file sf3_audio.h.
SF3_EXPORT size_t sf3_audio_size | ( | const struct sf3_audio * | audio | ) |
Computes the size of the audio file in bytes.
Definition at line 93 of file sf3_audio.h.