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

Record and playback TS audio #17

Open
jhakonen opened this issue Mar 4, 2015 · 0 comments
Open

Record and playback TS audio #17

jhakonen opened this issue Mar 4, 2015 · 0 comments
Milestone

Comments

@jhakonen
Copy link
Owner

jhakonen commented Mar 4, 2015

When recording a .wotreplay file the TS plugin records any speech audio in TS (including your own speech). The audio would be stored to same folder as the replay-file.

When replaying a .wotreplay file in game, the python mod automatically plays back the recorded audio as well. The mod must be able to sync the audio with the replay's playback: jumping in time and increasing/decreasing playback speed.

The recorded audio file would be a compressed archive which contains every TS user's speech as PCM audio file. Each audio file name should contain player's ID (if known) so that the mod can also position the audio sources in battle.

Ways to implemented the sound playback:

  • Implement a separate executable which would be included with the mod. The executable would use OpenAL to playback the audio data. The mod starts the executable at start of .wotreplay playback and then constantly passes (via shared memory perhaps?) current time offset and playback speed to it, keeping it sync with the playback.
  • Implement audio playback using game's internal sound engine; WWise.
  • Implement audio playback using Flash's audio classes.
  • Implement audio playback with the TS plugin.

Questions:

  • Can we playback audio data (= stream) using WWise from Python?
  • Flash supports audio streaming, but it requires flash player version 10 or newer, what version the game's internal flash engine supports?
  • Where we can get name of the currently recording wotreplay file?
  • In order to keep the replay and audio in-sync, we would need a timestamp from within the game which would be same both while playing and replaying. Is there such?
@jhakonen jhakonen added this to the Backlog milestone Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant