Audio stream functions...

This commit is contained in:
Ognjen Milan Robovic 2024-03-24 07:11:56 -04:00
parent d11c1fc7bb
commit 32f44113f8

View File

@ -3967,76 +3967,111 @@ package Raylib is
Import => True, Import => True,
Convention => C, Convention => C,
External_Name => "GetMusicTimePlayed"; External_Name => "GetMusicTimePlayed";
--~################################################################
--~function AudioStream LoadAudioStream (unsigned int sampleRate, unsigned int sampleSize, unsigned int channels) with
--~Import => True,
--~Convention => C,
--~External_Name => "";
--~function bool IsAudioStreamReady (AudioStream stream) with function Load_Audio_Stream (
--~Import => True, Sample_Rate : Natural := 0;
--~Convention => C, Sample_Size : Natural := 0;
--~External_Name => ""; Channels : Natural := 0
) return Audio_Stream with
Import => True,
Convention => C,
External_Name => "LoadAudioStream";
--~procedure UnloadAudioStream (AudioStream stream) with function Is_Audio_Stream_Ready (
--~Import => True, Data : Audio_Stream := No_Audio_Stream
--~Convention => C, ) return Logical with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "IsAudioStreamReady";
--~procedure UpdateAudioStream (AudioStream stream, const void *data, int frameCount) with procedure Unload_Audio_Stream (
--~Import => True, Data : Audio_Stream := No_Audio_Stream
--~Convention => C, ) with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "UnloadAudioStream";
--~function bool IsAudioStreamProcessed (AudioStream stream) with procedure Update_Audio_Stream (
--~Import => True, Data : Audio_Stream := No_Audio_Stream;
--~Convention => C, Raw_Data : Pointer := null;
--~External_Name => ""; Frame_Count : Integer := 0
) with
Import => True,
Convention => C,
External_Name => "UpdateAudioStream";
--~procedure PlayAudioStream (AudioStream stream) with function Is_Audio_Stream_Processed (
--~Import => True, Data : Audio_Stream := No_Audio_Stream
--~Convention => C, ) return Logical with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "IsAudioStreamProcessed";
--~procedure PauseAudioStream (AudioStream stream) with procedure Play_Audio_Stream (
--~Import => True, Data : Audio_Stream := No_Audio_Stream
--~Convention => C, ) with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "PlayAudioStream";
--~procedure ResumeAudioStream (AudioStream stream) with procedure Pause_Audio_Stream (
--~Import => True, Data : Audio_Stream := No_Audio_Stream
--~Convention => C, ) with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "PauseAudioStream";
--~function bool IsAudioStreamPlaying (AudioStream stream) with procedure Resume_Audio_Stream (
--~Import => True, Data : Audio_Stream := No_Audio_Stream
--~Convention => C, ) with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "ResumeAudioStream";
--~procedure StopAudioStream (AudioStream stream) with function Is_Audio_Stream_Playing (
--~Import => True, Data : Audio_Stream := No_Audio_Stream
--~Convention => C, ) return Logical with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "IsAudioStreamPlaying";
--~procedure SetAudioStreamVolume (AudioStream stream, float volume) with procedure Stop_Audio_Stream (
--~Import => True, Data : Audio_Stream := No_Audio_Stream
--~Convention => C, ) with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "StopAudioStream";
--~procedure SetAudioStreamPitch (AudioStream stream, float pitch) with procedure Set_Audio_Stream_Volume (
--~Import => True, Data : Audio_Stream := No_Audio_Stream;
--~Convention => C, Volume : Float := 0.0
--~External_Name => ""; ) with
Import => True,
Convention => C,
External_Name => "SetAudioStreamVolume";
--~procedure SetAudioStreamPan (AudioStream stream, float pan) with procedure Set_Audio_Stream_Pitch (
--~Import => True, Data : Audio_Stream := No_Audio_Stream;
--~Convention => C, Pitch : Float := 0.0
--~External_Name => ""; ) with
Import => True,
Convention => C,
External_Name => "SetAudioStreamPitch";
--~procedure SetAudioStreamBufferSizeDefault (int size) with procedure Set_Audio_Stream_Pan (
--~Import => True, Data : Audio_Stream := No_Audio_Stream;
--~Convention => C, Pan : Float := 0.0
--~External_Name => ""; ) with
Import => True,
Convention => C,
External_Name => "SetAudioStreamPan";
procedure Set_Audio_Stream_Buffer_Size_Default (
Size : Integer := 0
) with
Import => True,
Convention => C,
External_Name => "SetAudioStreamBufferSizeDefault";
--~procedure SetAudioStreamCallback (AudioStream stream, AudioCallback callback) with --~procedure SetAudioStreamCallback (AudioStream stream, AudioCallback callback) with
--~Import => True, --~Import => True,