Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.

Sound functions like pause, set volume #111

Open
radzikowski opened this issue Jan 3, 2013 · 1 comment
Open

Sound functions like pause, set volume #111

radzikowski opened this issue Jan 3, 2013 · 1 comment

Comments

@radzikowski
Copy link

Hi

CAAT has no operations in the playback sound, you can not just set stop/pause of playing sound, or even change the volume on it.
You can change volume before you play a sound.

@hyperandroid
Copy link
Owner

I've made Audio functions:

director.audioPlay
director.audioLoop
director.musicPlay

to return the assigned Audio object.
You can then modify the volume on the fly through out the returned object.

stop/pause, is not intended to be done on your side. You instrument the
system to start playing/looping a sound. Mainly because it reuses Audio
channels. You could stop a sound though without problem.

additionally, you can set a callback for the event of a sound end playing.

you can pause the music with the Audio object returned by
director.musicPlay.

Is this the expected behavior ?

Thanks.

  • ibon

2013/1/3 Piotr Radzikowski [email protected]

Hi

CAAT has no operations in the playback sound, you can not just set
stop/pause of playing sound, or even change the volume on it.
You can change volume before you play a sound.


Reply to this email directly or view it on GitHubhttps://github.com//issues/111.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants