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?
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:
Questions: