Mintoris
Jul 19, 2018, 03:40 PM *
Welcome, Guest.

login

register

Did you miss your activation email?


Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Changes in PlayAudio  (Read 215 times)
FabianClub
Full Member
***
Posts: 76


« on: Apr 17, 2018, 12:14 PM »

Dears.
I return with my observations.
As I do extensive programs in Mintoris Basic, I notice some details that I want to share with Chuck, why he decides if my observation is useful or not.
As we all know, sounds and music are necessary in games or applications. In each audio file that one plays, you must then enter the control to know when the audio time ends. This is:
PlayAudio 2, "explosion.mp3"
Do While isAudioPlaying (2)
Wait 1
Loop
Introducing the same commands in each audio is tedious.
I thought it would be useful for the programmer to add another parameter to the PlayAudio command, with which you can indicate if you want the program to pause its execution when the audio of that channel is playing, or if you prefer to continue the sequence of the program while the audio is playing.
For example:
PlayAudio channel, file location, [start paused, left volume, right volume, pause program]
Obviously, if you pause the program until you finish the audio, you should not pause the sounds that are playing on other channels, nor the movements of the sprites.

Thanks for reading my suggestions.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.024 seconds with 17 queries.