C# 클래스 SFML.Audio.SoundBuffer

Storage for audio samples defining a sound
상속: SFML.System.ObjectBase
파일 보기 프로젝트 열기: SFML/SFML.Net 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Destroy ( bool disposing ) : void

Handle the destruction of the object

비공개 메소드들

메소드 설명
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

메소드 상세

Destroy() 보호된 메소드

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 ?
리턴 void

SaveToFile() 공개 메소드

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
리턴 bool

SoundBuffer() 공개 메소드

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

SoundBuffer() 공개 메소드

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
리턴 System

SoundBuffer() 공개 메소드

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
리턴 System

SoundBuffer() 공개 메소드

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
리턴 System

SoundBuffer() 공개 메소드

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
리턴 System

ToString() 공개 메소드

Provide a string describing the object
public ToString ( ) : string
리턴 string