25 #ifndef SFML_SOUNDBUFFER_H
26 #define SFML_SOUNDBUFFER_H
31 #include <SFML/Audio/Export.h>
32 #include <SFML/Audio/Types.h>
33 #include <SFML/System/InputStream.h>
34 #include <SFML/System/Time.h>
50 CSFML_AUDIO_API sfSoundBuffer* sfSoundBuffer_createFromFile(
const char* filename);
65 CSFML_AUDIO_API sfSoundBuffer* sfSoundBuffer_createFromMemory(
const void* data,
size_t sizeInBytes);
79 CSFML_AUDIO_API sfSoundBuffer* sfSoundBuffer_createFromStream(
sfInputStream* stream);
95 CSFML_AUDIO_API sfSoundBuffer* sfSoundBuffer_createFromSamples(
const sfInt16* samples, sfUint64 sampleCount,
unsigned int channelCount,
unsigned int sampleRate);
105 CSFML_AUDIO_API sfSoundBuffer* sfSoundBuffer_copy(
const sfSoundBuffer* soundBuffer);
113 CSFML_AUDIO_API
void sfSoundBuffer_destroy(sfSoundBuffer* soundBuffer);
128 CSFML_AUDIO_API sfBool sfSoundBuffer_saveToFile(
const sfSoundBuffer* soundBuffer,
const char* filename);
142 CSFML_AUDIO_API
const sfInt16* sfSoundBuffer_getSamples(
const sfSoundBuffer* soundBuffer);
155 CSFML_AUDIO_API sfUint64 sfSoundBuffer_getSampleCount(
const sfSoundBuffer* soundBuffer);
169 CSFML_AUDIO_API
unsigned int sfSoundBuffer_getSampleRate(
const sfSoundBuffer* soundBuffer);
182 CSFML_AUDIO_API
unsigned int sfSoundBuffer_getChannelCount(
const sfSoundBuffer* soundBuffer);
192 CSFML_AUDIO_API
sfTime sfSoundBuffer_getDuration(
const sfSoundBuffer* soundBuffer);
195 #endif // SFML_SOUNDBUFFER_H