-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d56a89
commit 4acf97d
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
description: Sound system library for PyLoader. | ||
--- | ||
|
||
# Bass | ||
|
||
This module provides minimal APIs to work with bass. If you need anything advanced, use the pybass3 module instead. | ||
|
||
### **get\_audiostream\_length\(hstream\)** | ||
|
||
Returns length of the audio stream. | ||
|
||
### **get\_audiostream\_volume\(hstream\)** | ||
|
||
Returns the current volume of the audio stream. | ||
|
||
### link\_3d\_audiostream\_to\_actor\(**hstream, hped**\) | ||
|
||
Links the audio stream position to the actor. | ||
|
||
### link\_3d\_audiostream\_to\_obj\(**hstream, hobj**\) | ||
|
||
Links the audio stream position to the object. | ||
|
||
### link\_3d\_audiostream\_to\_veh\(**hstream, hveh**\) | ||
|
||
Links the audio stream position to the vehicle. | ||
|
||
### load\_audiostream\(path\) load\_audiostream\_with\_3d\_support\(path\) | ||
|
||
Loads audio stream from the provided path. Returns handle to the loaded stream. **0** is returned on failure. | ||
|
||
### loop\_audiostream**\(hstream, bool\)** | ||
|
||
Sets flag whether the audio stream should be looped. | ||
|
||
### release\_audiostream\(hstream\) | ||
|
||
Frees the loaded audio stream. | ||
|
||
### set\_audiostream\_perform\_action\(hstream, int action\) | ||
|
||
Sets the action for the audio stream. | ||
|
||
**Values \(action\):** | ||
|
||
* Stop = 0 | ||
* Play = 1 | ||
* Pause = 2 | ||
* Resume = 3 | ||
|
||
### set\_audiostream\_volume\(hstream, float volume\) | ||
|
||
Sets the audio stream volume. | ||
|
||
### set\_3d\_audiostream\_position\(hstream, float posX,float posY, float posZ\) | ||
|
||
Sets position for the 3d audio stream. | ||
|