Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
audio/mumble{,-server}: fix build on i386
Upstream issue: mumble-voip/mumble#6377 Reported by: pkg-fallout Approved by: arrowd (mentor, implicit)
- Loading branch information
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/MumbleProtocol.cpp.orig 2024-03-03 17:26:27 UTC | ||
+++ src/MumbleProtocol.cpp | ||
@@ -781,7 +781,7 @@ namespace Protocol { | ||
} | ||
|
||
|
||
- m_audioData.payload = gsl::span< byte >(payloadBegin, payloadSize); | ||
+ m_audioData.payload = gsl::span< byte >(payloadBegin, static_cast< size_t >(payloadSize)); | ||
|
||
if (stream.left() == 3 * sizeof(float)) { | ||
// If there are further bytes after the audio payload, this means that there is positional data attached to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/mumble/Audio.cpp.orig 2024-03-03 17:26:27 UTC | ||
+++ src/mumble/Audio.cpp | ||
@@ -43,7 +43,7 @@ void LoopUser::addFrame(const Mumble::Protocol::AudioD | ||
QMutexLocker l(&qmLock); | ||
bool restart = (qetLastFetch.elapsed() > 100); | ||
|
||
- long time = qetTicker.elapsed(); | ||
+ long long time = qetTicker.elapsed(); | ||
|
||
float r; | ||
if (restart) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- src/mumble/AudioOutput.cpp.orig 2024-03-03 17:26:27 UTC | ||
+++ src/mumble/AudioOutput.cpp | ||
@@ -617,11 +617,11 @@ bool AudioOutput::mix(void *outbuff, unsigned int fram | ||
// Mix down stereo to mono. TODO: stereo record support | ||
// frame: for a stereo stream, the [LR] pair inside ...[LR]LRLRLR.... is a frame | ||
for (unsigned int i = 0; i < frameCount; ++i) { | ||
- recbuff[i] += (pfBuffer[2 * i] / 2.0f + pfBuffer[2 * i + 1] / 2.0f) * volumeAdjustment; | ||
+ recbuff[static_cast< int >(i)] += (pfBuffer[2 * i] / 2.0f + pfBuffer[2 * i + 1] / 2.0f) * volumeAdjustment; | ||
} | ||
} else { | ||
for (unsigned int i = 0; i < frameCount; ++i) { | ||
- recbuff[i] += pfBuffer[i] * volumeAdjustment; | ||
+ recbuff[static_cast< int >(i)] += pfBuffer[i] * volumeAdjustment; | ||
} | ||
} | ||
|