C# Class SFML.Audio.SoundBuffer

Storage for audio samples defining a sound
Inheritance: SFML.System.ObjectBase
Show file Open project: SFML/SFML.Net Class Usage Examples

Public Methods

Method Description
SaveToFile ( string filename ) : bool

Save the sound buffer to an audio file. Here is a complete list of all the supported audio formats: ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64.

SoundBuffer ( SoundBuffer copy ) : System

Construct a sound buffer from another sound buffer

SoundBuffer ( Stream stream ) : System

Construct a sound buffer from a custom stream. Here is a complete list of all the supported audio formats: ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64.

SoundBuffer ( byte bytes ) : System

Construct a sound buffer from a file in memory. Here is a complete list of all the supported audio formats: ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64.

SoundBuffer ( short samples, uint channelCount, uint sampleRate ) : System

Construct a sound buffer from an array of samples

SoundBuffer ( string filename ) : System

Construct a sound buffer from a file Here is a complete list of all the supported audio formats: ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64.

ToString ( ) : string

Provide a string describing the object

Protected Methods

Method Description
Destroy ( bool disposing ) : void

Handle the destruction of the object

Private Methods

Method Description
sfSoundBuffer_copy ( IntPtr SoundBuffer ) : IntPtr
sfSoundBuffer_createFromFile ( string Filename ) : IntPtr
sfSoundBuffer_createFromMemory ( IntPtr data, ulong size ) : IntPtr
sfSoundBuffer_createFromSamples ( short Samples, uint SampleCount, uint ChannelsCount, uint SampleRate ) : IntPtr
sfSoundBuffer_createFromStream ( IntPtr stream ) : IntPtr
sfSoundBuffer_destroy ( IntPtr SoundBuffer ) : void
sfSoundBuffer_getChannelCount ( IntPtr SoundBuffer ) : uint
sfSoundBuffer_getDuration ( IntPtr SoundBuffer ) : Time
sfSoundBuffer_getSampleCount ( IntPtr SoundBuffer ) : uint
sfSoundBuffer_getSampleRate ( IntPtr SoundBuffer ) : uint
sfSoundBuffer_getSamples ( IntPtr SoundBuffer ) : IntPtr
sfSoundBuffer_saveToFile ( IntPtr SoundBuffer, string Filename ) : bool

Method Details

Destroy() protected method

Handle the destruction of the object
protected Destroy ( bool disposing ) : void
disposing bool Is the GC disposing the object, or is it an explicit call ?
return void

SaveToFile() public method

Save the sound buffer to an audio file. Here is a complete list of all the supported audio formats: ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64.
public SaveToFile ( string filename ) : bool
filename string Path of the sound file to write
return bool

SoundBuffer() public method

Construct a sound buffer from another sound buffer
public SoundBuffer ( SoundBuffer copy ) : System
copy SoundBuffer Sound buffer to copy
return System

SoundBuffer() public method

Construct a sound buffer from a custom stream. Here is a complete list of all the supported audio formats: ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64.
public SoundBuffer ( Stream stream ) : System
stream Stream Source stream to read from
return System

SoundBuffer() public method

Construct a sound buffer from a file in memory. Here is a complete list of all the supported audio formats: ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64.
public SoundBuffer ( byte bytes ) : System
bytes byte Byte array containing the file contents
return System

SoundBuffer() public method

Construct a sound buffer from an array of samples
public SoundBuffer ( short samples, uint channelCount, uint sampleRate ) : System
samples short Array of samples
channelCount uint Channel count
sampleRate uint Sample rate
return System

SoundBuffer() public method

Construct a sound buffer from a file Here is a complete list of all the supported audio formats: ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64.
public SoundBuffer ( string filename ) : System
filename string Path of the sound file to load
return System

ToString() public method

Provide a string describing the object
public ToString ( ) : string
return string