al_sys

Struct AlApi

Source
pub struct AlApi(/* private fields */);

Implementations§

Source§

impl AlApi

Source

pub fn load_default() -> Result<AlApi>

Source

pub fn load<P: AsRef<Path>>(path: P) -> Result<AlApi>

Source

pub unsafe fn alcCreateContext( &self, device: *mut ALCdevice, attrlist: *const ALCint, ) -> *mut ALCcontext

Source

pub unsafe fn alcMakeContextCurrent( &self, context: *mut ALCcontext, ) -> ALCboolean

Source

pub unsafe fn alcProcessContext(&self, context: *mut ALCcontext)

Source

pub unsafe fn alcSuspendContext(&self, context: *mut ALCcontext)

Source

pub unsafe fn alcDestroyContext(&self, context: *mut ALCcontext)

Source

pub unsafe fn alcGetCurrentContext(&self) -> *mut ALCcontext

Source

pub unsafe fn alcGetContextsDevice( &self, context: *mut ALCcontext, ) -> *mut ALCdevice

Source

pub unsafe fn alcOpenDevice(&self, devicename: *const ALCchar) -> *mut ALCdevice

Source

pub unsafe fn alcCloseDevice(&self, device: *mut ALCdevice) -> ALCboolean

Source

pub unsafe fn alcGetError(&self, device: *mut ALCdevice) -> ALCenum

Source

pub unsafe fn alcIsExtensionPresent( &self, device: *mut ALCdevice, extname: *const ALCchar, ) -> ALCboolean

Source

pub unsafe fn alcGetProcAddress( &self, device: *mut ALCdevice, funcname: *const ALCchar, ) -> *mut c_void

Source

pub unsafe fn alcGetEnumValue( &self, device: *mut ALCdevice, enumname: *const ALCchar, ) -> ALCenum

Source

pub unsafe fn alcGetString( &self, device: *mut ALCdevice, param: ALCenum, ) -> *const ALCchar

Source

pub unsafe fn alcGetIntegerv( &self, device: *mut ALCdevice, param: ALCenum, size: ALCsizei, values: *mut ALCint, )

Source

pub unsafe fn alcCaptureOpenDevice( &self, devicename: *const ALCchar, frequency: ALCuint, format: ALCenum, buffersize: ALCsizei, ) -> *mut ALCdevice

Source

pub unsafe fn alcCaptureCloseDevice(&self, device: *mut ALCdevice) -> ALCboolean

Source

pub unsafe fn alcCaptureStart(&self, device: *mut ALCdevice)

Source

pub unsafe fn alcCaptureStop(&self, device: *mut ALCdevice)

Source

pub unsafe fn alcCaptureSamples( &self, device: *mut ALCdevice, buffer: *mut ALCvoid, samples: ALCsizei, )

Source

pub unsafe fn alDopplerFactor(&self, value: ALfloat)

Source

pub unsafe fn alDopplerVelocity(&self, value: ALfloat)

Source

pub unsafe fn alSpeedOfSound(&self, value: ALfloat)

Source

pub unsafe fn alDistanceModel(&self, distanceModel: ALenum)

Source

pub unsafe fn alEnable(&self, capability: ALenum)

Source

pub unsafe fn alDisable(&self, capability: ALenum)

Source

pub unsafe fn alIsEnabled(&self, capability: ALenum) -> ALboolean

Source

pub unsafe fn alGetString(&self, param: ALenum) -> *const ALchar

Source

pub unsafe fn alGetBooleanv(&self, param: ALenum, values: *mut ALboolean)

Source

pub unsafe fn alGetIntegerv(&self, param: ALenum, values: *mut ALint)

Source

pub unsafe fn alGetFloatv(&self, param: ALenum, values: *mut ALfloat)

Source

pub unsafe fn alGetDoublev(&self, param: ALenum, values: *mut ALdouble)

Source

pub unsafe fn alGetBoolean(&self, param: ALenum) -> ALboolean

Source

pub unsafe fn alGetInteger(&self, param: ALenum) -> ALint

Source

pub unsafe fn alGetFloat(&self, param: ALenum) -> ALfloat

Source

pub unsafe fn alGetDouble(&self, param: ALenum) -> ALdouble

Source

pub unsafe fn alGetError(&self) -> ALenum

Source

pub unsafe fn alIsExtensionPresent(&self, extname: *const ALchar) -> ALboolean

Source

pub unsafe fn alGetProcAddress(&self, fname: *const ALchar) -> *mut c_void

Source

pub unsafe fn alGetEnumValue(&self, ename: *const ALchar) -> ALenum

Source

pub unsafe fn alListenerf(&self, param: ALenum, value: ALfloat)

Source

pub unsafe fn alListener3f( &self, param: ALenum, value1: ALfloat, value2: ALfloat, value3: ALfloat, )

Source

pub unsafe fn alListenerfv(&self, param: ALenum, values: *const ALfloat)

Source

pub unsafe fn alListeneri(&self, param: ALenum, value: ALint)

Source

pub unsafe fn alListener3i( &self, param: ALenum, value1: ALint, value2: ALint, value3: ALint, )

Source

pub unsafe fn alListeneriv(&self, param: ALenum, values: *const ALint)

Source

pub unsafe fn alGetListenerf(&self, param: ALenum, value: *mut ALfloat)

Source

pub unsafe fn alGetListener3f( &self, param: ALenum, value1: *mut ALfloat, value2: *mut ALfloat, value3: *mut ALfloat, )

Source

pub unsafe fn alGetListenerfv(&self, param: ALenum, values: *mut ALfloat)

Source

pub unsafe fn alGetListeneri(&self, param: ALenum, value: *mut ALint)

Source

pub unsafe fn alGetListener3i( &self, param: ALenum, value1: *mut ALint, value2: *mut ALint, value3: *mut ALint, )

Source

pub unsafe fn alGetListeneriv(&self, param: ALenum, values: *mut ALint)

Source

pub unsafe fn alGenSources(&self, n: ALsizei, sources: *mut ALuint)

Source

pub unsafe fn alDeleteSources(&self, n: ALsizei, sources: *const ALuint)

Source

pub unsafe fn alIsSource(&self, source: ALuint) -> ALboolean

Source

pub unsafe fn alSourcef(&self, source: ALuint, param: ALenum, value: ALfloat)

Source

pub unsafe fn alSource3f( &self, source: ALuint, param: ALenum, value1: ALfloat, value2: ALfloat, value3: ALfloat, )

Source

pub unsafe fn alSourcefv( &self, source: ALuint, param: ALenum, values: *const ALfloat, )

Source

pub unsafe fn alSourcei(&self, source: ALuint, param: ALenum, value: ALint)

Source

pub unsafe fn alSource3i( &self, source: ALuint, param: ALenum, value1: ALint, value2: ALint, value3: ALint, )

Source

pub unsafe fn alSourceiv( &self, source: ALuint, param: ALenum, values: *const ALint, )

Source

pub unsafe fn alGetSourcef( &self, source: ALuint, param: ALenum, value: *mut ALfloat, )

Source

pub unsafe fn alGetSource3f( &self, source: ALuint, param: ALenum, value1: *mut ALfloat, value2: *mut ALfloat, value3: *mut ALfloat, )

Source

pub unsafe fn alGetSourcefv( &self, source: ALuint, param: ALenum, values: *mut ALfloat, )

Source

pub unsafe fn alGetSourcei( &self, source: ALuint, param: ALenum, value: *mut ALint, )

Source

pub unsafe fn alGetSource3i( &self, source: ALuint, param: ALenum, value1: *mut ALint, value2: *mut ALint, value3: *mut ALint, )

Source

pub unsafe fn alGetSourceiv( &self, source: ALuint, param: ALenum, values: *mut ALint, )

Source

pub unsafe fn alSourcePlayv(&self, n: ALsizei, sources: *const ALuint)

Source

pub unsafe fn alSourceStopv(&self, n: ALsizei, sources: *const ALuint)

Source

pub unsafe fn alSourceRewindv(&self, n: ALsizei, sources: *const ALuint)

Source

pub unsafe fn alSourcePausev(&self, n: ALsizei, sources: *const ALuint)

Source

pub unsafe fn alSourcePlay(&self, source: ALuint)

Source

pub unsafe fn alSourceStop(&self, source: ALuint)

Source

pub unsafe fn alSourceRewind(&self, source: ALuint)

Source

pub unsafe fn alSourcePause(&self, source: ALuint)

Source

pub unsafe fn alSourceQueueBuffers( &self, source: ALuint, nb: ALsizei, buffers: *const ALuint, )

Source

pub unsafe fn alSourceUnqueueBuffers( &self, source: ALuint, nb: ALsizei, buffers: *mut ALuint, )

Source

pub unsafe fn alGenBuffers(&self, n: ALsizei, buffers: *mut ALuint)

Source

pub unsafe fn alDeleteBuffers(&self, n: ALsizei, buffers: *const ALuint)

Source

pub unsafe fn alIsBuffer(&self, buffer: ALuint) -> ALboolean

Source

pub unsafe fn alBufferData( &self, buffer: ALuint, format: ALenum, data: *const ALvoid, size: ALsizei, freq: ALsizei, )

Source

pub unsafe fn alBufferf(&self, buffer: ALuint, param: ALenum, value: ALfloat)

Source

pub unsafe fn alBuffer3f( &self, buffer: ALuint, param: ALenum, value1: ALfloat, value2: ALfloat, value3: ALfloat, )

Source

pub unsafe fn alBufferfv( &self, buffer: ALuint, param: ALenum, values: *const ALfloat, )

Source

pub unsafe fn alBufferi(&self, buffer: ALuint, param: ALenum, value: ALint)

Source

pub unsafe fn alBuffer3i( &self, buffer: ALuint, param: ALenum, value1: ALint, value2: ALint, value3: ALint, )

Source

pub unsafe fn alBufferiv( &self, buffer: ALuint, param: ALenum, values: *const ALint, )

Source

pub unsafe fn alGetBufferf( &self, buffer: ALuint, param: ALenum, value: *mut ALfloat, )

Source

pub unsafe fn alGetBuffer3f( &self, buffer: ALuint, param: ALenum, value1: *mut ALfloat, value2: *mut ALfloat, value3: *mut ALfloat, )

Source

pub unsafe fn alGetBufferfv( &self, buffer: ALuint, param: ALenum, values: *mut ALfloat, )

Source

pub unsafe fn alGetBufferi( &self, buffer: ALuint, param: ALenum, value: *mut ALint, )

Source

pub unsafe fn alGetBuffer3i( &self, buffer: ALuint, param: ALenum, value1: *mut ALint, value2: *mut ALint, value3: *mut ALint, )

Source

pub unsafe fn alGetBufferiv( &self, buffer: ALuint, param: ALenum, values: *mut ALint, )

Auto Trait Implementations§

§

impl Freeze for AlApi

§

impl RefUnwindSafe for AlApi

§

impl Send for AlApi

§

impl Sync for AlApi

§

impl Unpin for AlApi

§

impl UnwindSafe for AlApi

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.