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

Extension - Handle stereo audio from TeamSpeak (cherry pick) #1240

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

PabstMirror
Copy link
Collaborator

@PabstMirror PabstMirror commented Apr 11, 2023

fix #1237
Cherypick the stero fix from #1105

acre just expects mono microphone data, but TS is capable of stereo
without the mono fix, everything was pitch shifted lower because the sound data is interleaved [left, right, left]

@@ -8,6 +8,7 @@

#include <cmath>
#pragma comment(lib, "x3daudio.lib")
#pragma comment(lib, "xaudio2.lib")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not fully sure why this is now required, it's unrelated to pr but need to build on VS17.6

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't need that on VS17.5. 🤔

Copy link
Collaborator Author

@PabstMirror PabstMirror Apr 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error

2>ACRE2Core.lib(FilterPosition.obj) : error LNK2019: unresolved external symbol __imp_X3DAudioInitialize referenced in function "public: enum acre::Result __cdecl CFilterPosition::process(short *,int,int,unsigned int,class CSoundMixdownEffect *)" (?process@CFilterPosition@@QEAA?AW4Result@acre@@PEAFHHIPEAVCSoundMixdownEffect@@@Z)
2>ACRE2Core.lib(FilterPosition.obj) : error LNK2019: unresolved external symbol __imp_X3DAudioCalculate referenced in function "public: enum acre::Result __cdecl CFilterPosition::process(short *,int,int,unsigned int,class CSoundMixdownEffect *)" (?process@CFilterPosition@@QEAA?AW4Result@acre@@PEAFHHIPEAVCSoundMixdownEffect@@@Z)

it might just be something on my machine
we could just remove the line from the pr and let it build via github automation
or fix via cmake config, but we already had a existing #pragma comment(lib

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It also builds with it for me, forgot to say that. So I am fine with leaving it in.

@jonpas jonpas added this to the 2.11.0 milestone Apr 11, 2023
@jonpas jonpas changed the title Extension - Handle stereo audio from teamspeak (cherry pick) Extension - Handle stereo audio from TeamSpeak (cherry pick) Apr 11, 2023
@jonpas jonpas merged commit e119b15 into master Apr 13, 2023
@jonpas jonpas deleted the stereoCherrypick branch April 13, 2023 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Audio artifacts in TS channel with high(est) bitrate
2 participants