Tao.Sdl SDK Documentation

Sdl.SDL_AudioSpec Structure

Audio Specification Structure

For a list of all members of this type, see Sdl.SDL_AudioSpec Members.

System.Object
   System.ValueType
      Tao.Sdl.Sdl.SDL_AudioSpec

[Visual Basic]
Public Structure Sdl.SDL_AudioSpec
[C#]
public struct Sdl.SDL_AudioSpec

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The calculated values in this structure are calculated by SDL_OpenAudio() The SDL_AudioSpec structure is used to describe the format of some audio data. This structure is used by SDL_OpenAudio and SDL_LoadWAV. While all fields are used by SDL_OpenAudio only freq, format, samples and channels are used by SDL_LoadWAV. We will detail these common members here.

Marshals C-struct in SDL_audio.h:

            typedef struct{
                    int freq;
                    Uint16 format;
                    Uint8 channels;
                    Uint8 silence;
                    Uint16 samples;
                    Uint32 size;
                    void (*callback)(void *userdata, Uint8 *stream, int len);
                    void *userdata;
                } SDL_AudioSpec;
            

Requirements

Namespace: Tao.Sdl

Assembly: Tao.Sdl (in Tao.Sdl.dll)

See Also

Sdl.SDL_AudioSpec Members | Tao.Sdl Namespace | SDL_OpenAudio | SDL_LoadWAV