Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[raudio] Volume, Pan and Pitch getters #3960

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions parser/output/raylib_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -11188,6 +11188,17 @@
}
]
},
{
"name": "GetSoundVolume",
"description": "Get volume for a sound (1.0 is max level)",
"returnType": "float",
"params": [
{
"type": "Sound",
"name": "sound"
}
]
},
{
"name": "SetSoundPitch",
"description": "Set pitch for a sound (1.0 is base level)",
Expand All @@ -11203,6 +11214,17 @@
}
]
},
{
"name": "GetSoundPitch",
"description": "Get pitch for a sound (1.0 is base level)",
"returnType": "float",
"params": [
{
"type": "Sound",
"name": "sound"
}
]
},
{
"name": "SetSoundPan",
"description": "Set pan for a sound (0.5 is center)",
Expand All @@ -11218,6 +11240,17 @@
}
]
},
{
"name": "GetSoundPan",
"description": "Set pan for a sound (0.5 is center)",
"returnType": "float",
"params": [
{
"type": "Sound",
"name": "sound"
}
]
},
{
"name": "WaveCopy",
"description": "Copy a wave to a new wave",
Expand Down Expand Up @@ -11441,6 +11474,17 @@
}
]
},
{
"name": "GetMusicVolume",
"description": "Get volume for music (1.0 is max level)",
"returnType": "float",
"params": [
{
"type": "Music",
"name": "music"
}
]
},
{
"name": "SetMusicPitch",
"description": "Set pitch for a music (1.0 is base level)",
Expand All @@ -11456,6 +11500,17 @@
}
]
},
{
"name": "GetMusicPitch",
"description": "Get pitch for a music (1.0 is base level)",
"returnType": "float",
"params": [
{
"type": "Music",
"name": "music"
}
]
},
{
"name": "SetMusicPan",
"description": "Set pan for a music (0.5 is center)",
Expand All @@ -11471,6 +11526,17 @@
}
]
},
{
"name": "GetMusicPan",
"description": "Get pan for a music (0.5 is center)",
"returnType": "float",
"params": [
{
"type": "Music",
"name": "music"
}
]
},
{
"name": "GetMusicTimeLength",
"description": "Get music time length (in seconds)",
Expand Down Expand Up @@ -11634,6 +11700,17 @@
}
]
},
{
"name": "GetAudioStreamVolume",
"description": "Get volume for audio stream (1.0 is max level)",
"returnType": "float",
"params": [
{
"type": "AudioStream",
"name": "stream"
}
]
},
{
"name": "SetAudioStreamPitch",
"description": "Set pitch for audio stream (1.0 is base level)",
Expand All @@ -11649,6 +11726,17 @@
}
]
},
{
"name": "GetAudioStreamPitch",
"description": "Get pitch for audio stream (1.0 is base level)",
"returnType": "float",
"params": [
{
"type": "AudioStream",
"name": "stream"
}
]
},
{
"name": "SetAudioStreamPan",
"description": "Set pan for audio stream (0.5 is centered)",
Expand All @@ -11664,6 +11752,17 @@
}
]
},
{
"name": "GetAudioStreamPan",
"description": "Get pan for audio stream (0.5 is centered)",
"returnType": "float",
"params": [
{
"type": "AudioStream",
"name": "stream"
}
]
},
{
"name": "SetAudioStreamBufferSizeDefault",
"description": "Default size for new audio streams",
Expand Down
72 changes: 72 additions & 0 deletions parser/output/raylib_api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7705,6 +7705,14 @@ return {
{type = "float", name = "volume"}
}
},
{
name = "GetSoundVolume",
description = "Get volume for a sound (1.0 is max level)",
returnType = "float",
params = {
{type = "Sound", name = "sound"}
}
},
{
name = "SetSoundPitch",
description = "Set pitch for a sound (1.0 is base level)",
Expand All @@ -7714,6 +7722,14 @@ return {
{type = "float", name = "pitch"}
}
},
{
name = "GetSoundPitch",
description = "Get pitch for a sound (1.0 is base level)",
returnType = "float",
params = {
{type = "Sound", name = "sound"}
}
},
{
name = "SetSoundPan",
description = "Set pan for a sound (0.5 is center)",
Expand All @@ -7723,6 +7739,14 @@ return {
{type = "float", name = "pan"}
}
},
{
name = "GetSoundPan",
description = "Set pan for a sound (0.5 is center)",
returnType = "float",
params = {
{type = "Sound", name = "sound"}
}
},
{
name = "WaveCopy",
description = "Copy a wave to a new wave",
Expand Down Expand Up @@ -7868,6 +7892,14 @@ return {
{type = "float", name = "volume"}
}
},
{
name = "GetMusicVolume",
description = "Get volume for music (1.0 is max level)",
returnType = "float",
params = {
{type = "Music", name = "music"}
}
},
{
name = "SetMusicPitch",
description = "Set pitch for a music (1.0 is base level)",
Expand All @@ -7877,6 +7909,14 @@ return {
{type = "float", name = "pitch"}
}
},
{
name = "GetMusicPitch",
description = "Get pitch for a music (1.0 is base level)",
returnType = "float",
params = {
{type = "Music", name = "music"}
}
},
{
name = "SetMusicPan",
description = "Set pan for a music (0.5 is center)",
Expand All @@ -7886,6 +7926,14 @@ return {
{type = "float", name = "pan"}
}
},
{
name = "GetMusicPan",
description = "Get pan for a music (0.5 is center)",
returnType = "float",
params = {
{type = "Music", name = "music"}
}
},
{
name = "GetMusicTimeLength",
description = "Get music time length (in seconds)",
Expand Down Expand Up @@ -7995,6 +8043,14 @@ return {
{type = "float", name = "volume"}
}
},
{
name = "GetAudioStreamVolume",
description = "Get volume for audio stream (1.0 is max level)",
returnType = "float",
params = {
{type = "AudioStream", name = "stream"}
}
},
{
name = "SetAudioStreamPitch",
description = "Set pitch for audio stream (1.0 is base level)",
Expand All @@ -8004,6 +8060,14 @@ return {
{type = "float", name = "pitch"}
}
},
{
name = "GetAudioStreamPitch",
description = "Get pitch for audio stream (1.0 is base level)",
returnType = "float",
params = {
{type = "AudioStream", name = "stream"}
}
},
{
name = "SetAudioStreamPan",
description = "Set pan for audio stream (0.5 is centered)",
Expand All @@ -8013,6 +8077,14 @@ return {
{type = "float", name = "pan"}
}
},
{
name = "GetAudioStreamPan",
description = "Get pan for audio stream (0.5 is centered)",
returnType = "float",
params = {
{type = "AudioStream", name = "stream"}
}
},
{
name = "SetAudioStreamBufferSizeDefault",
description = "Default size for new audio streams",
Expand Down
Loading