chore: clean up implicit conversions (#4611)
This commit is contained in:
parent
517be368be
commit
aea9512682
13 changed files with 66 additions and 66 deletions
|
|
@ -114,7 +114,7 @@ namespace audio {
|
|||
while (auto sample = samples->pop()) {
|
||||
buffer_t packet {1400};
|
||||
|
||||
int bytes = opus_multistream_encode_float(opus.get(), sample->data(), frame_size, std::begin(packet), packet.size());
|
||||
int bytes = opus_multistream_encode_float(opus.get(), sample->data(), frame_size, std::begin(packet), (opus_int32) packet.size());
|
||||
if (bytes < 0) {
|
||||
BOOST_LOG(error) << "Couldn't encode audio: "sv << opus_strerror(bytes);
|
||||
packets->stop();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue