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

WAV File Playback Only Plays Once #54

Closed
baykovr opened this issue Apr 24, 2016 · 2 comments
Closed

WAV File Playback Only Plays Once #54

baykovr opened this issue Apr 24, 2016 · 2 comments
Assignees
Labels

Comments

@baykovr
Copy link
Owner

baykovr commented Apr 24, 2016

Reported that, 32bit .wav files only trigger and play once for Play_Sound action types.

Expected behavior: sound files are played on every invocation.
Actual behavior: the sound file plays only on the first invocation.

@baykovr baykovr self-assigned this Apr 24, 2016
@baykovr baykovr added the bug label Apr 24, 2016
@Tim0theus
Copy link

I forked your branch and added a RandomPicker. As I noticed, that a file only played once I added:

                wavePlayer.Pause();
                audioFileReader.Seek(0, System.IO.SeekOrigin.Begin);

in the run() of the Play_Sound action class, before the init and it worked for me.

@baykovr
Copy link
Owner Author

baykovr commented Aug 14, 2016

Fixed via 6d93259 (pulled in your changes).

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

No branches or pull requests

2 participants