note description: "This file has been generated by WrapC. Do not edit. Changes will be lost!" generator: "Eiffel Wrapper Generator" class SDL_AUDIO_FUNCTIONS_API create default_create feature -- Access sdl_pause_audio (pause_on: INTEGER_32) external "C inline use <SDL.h>" alias "[ SDL_PauseAudio ((int)$pause_on); ]" end sdl_load_wav_rw (src: SDL_RWOPS_STRUCT_API; freesrc: INTEGER_32; spec: SDL_AUDIO_SPEC_STRUCT_API; audio_buf: POINTER; audio_len: POINTER): detachable SDL_AUDIO_SPEC_STRUCT_API do if attached c_sdl_load_wav_rw (src.item, freesrc, spec.item, audio_buf, audio_len) as l_ptr and then not l_ptr.is_default_pointer then create Result.make_by_pointer (l_ptr) end ensure instance_free: class end sdl_build_audio_cvt (cvt: SDL_AUDIO_CVT_STRUCT_API; src_format: NATURAL_32; src_channels: CHARACTER_8; src_rate: INTEGER_32; dst_format: NATURAL_32; dst_channels: CHARACTER_8; dst_rate: INTEGER_32): INTEGER_32 do Result := c_sdl_build_audio_cvt (cvt.item, src_format, src_channels, src_rate, dst_format, dst_channels, dst_rate) ensure instance_free: class end sdl_convert_audio (cvt: SDL_AUDIO_CVT_STRUCT_API): INTEGER_32 do Result := c_sdl_convert_audio (cvt.item) ensure instance_free: class end feature -- Externals c_sdl_load_wav_rw (src: POINTER; freesrc: INTEGER_32; spec: POINTER; audio_buf: POINTER; audio_len: POINTER): POINTER external "C inline use <SDL.h>" alias "[ return SDL_LoadWAV_RW ((SDL_RWops*)$src, (int)$freesrc, (SDL_AudioSpec*)$spec, (Uint8**)$audio_buf, (Uint32*)$audio_len); ]" end c_sdl_build_audio_cvt (cvt: POINTER; src_format: NATURAL_32; src_channels: CHARACTER_8; src_rate: INTEGER_32; dst_format: NATURAL_32; dst_channels: CHARACTER_8; dst_rate: INTEGER_32): INTEGER_32 external "C inline use <SDL.h>" alias "[ return SDL_BuildAudioCVT ((SDL_AudioCVT*)$cvt, (SDL_AudioFormat)$src_format, (Uint8)$src_channels, (int)$src_rate, (SDL_AudioFormat)$dst_format, (Uint8)$dst_channels, (int)$dst_rate); ]" end c_sdl_convert_audio (cvt: POINTER): INTEGER_32 external "C inline use <SDL.h>" alias "[ return SDL_ConvertAudio ((SDL_AudioCVT*)$cvt); ]" end end -- class SDL_AUDIO_FUNCTIONS_API
Generated by ISE EiffelStudio