25 #ifndef SFML_SOUNDBUFFER_H 26 #define SFML_SOUNDBUFFER_H 195 #endif // SFML_SOUNDBUFFER_H struct sfSoundBuffer sfSoundBuffer
CSFML_AUDIO_API void sfSoundBuffer_destroy(sfSoundBuffer *soundBuffer)
Destroy a sound buffer.
CSFML_AUDIO_API sfSoundBuffer * sfSoundBuffer_copy(const sfSoundBuffer *soundBuffer)
Create a new sound buffer by copying an existing one.
unsigned long long sfUint64
CSFML_AUDIO_API sfBool sfSoundBuffer_saveToFile(const sfSoundBuffer *soundBuffer, const char *filename)
Save a sound buffer to an audio file.
CSFML_AUDIO_API sfUint64 sfSoundBuffer_getSampleCount(const sfSoundBuffer *soundBuffer)
Get the number of samples stored in a sound buffer.
CSFML_AUDIO_API sfSoundBuffer * sfSoundBuffer_createFromMemory(const void *data, size_t sizeInBytes)
Create a new sound buffer and load it from a file in memory.
CSFML_AUDIO_API const sfInt16 * sfSoundBuffer_getSamples(const sfSoundBuffer *soundBuffer)
Get the array of audio samples stored in a sound buffer.
CSFML_AUDIO_API sfTime sfSoundBuffer_getDuration(const sfSoundBuffer *soundBuffer)
Get the total duration of a sound buffer.
CSFML_AUDIO_API unsigned int sfSoundBuffer_getSampleRate(const sfSoundBuffer *soundBuffer)
Get the sample rate of a sound buffer.
CSFML_AUDIO_API sfSoundBuffer * sfSoundBuffer_createFromFile(const char *filename)
Create a new sound buffer and load it from a file.
CSFML_AUDIO_API sfSoundBuffer * sfSoundBuffer_createFromSamples(const sfInt16 *samples, sfUint64 sampleCount, unsigned int channelCount, unsigned int sampleRate)
Create a new sound buffer and load it from an array of samples in memory.
CSFML_AUDIO_API unsigned int sfSoundBuffer_getChannelCount(const sfSoundBuffer *soundBuffer)
Get the number of channels used by a sound buffer.
CSFML_AUDIO_API sfSoundBuffer * sfSoundBuffer_createFromStream(sfInputStream *stream)
Create a new sound buffer and load it from a custom stream.