mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 15:25:34 +08:00
Fix cppcheck and compiler warnings
This commit is contained in:
@@ -19,7 +19,7 @@ using namespace BlackMisc::Audio;
|
||||
|
||||
namespace BlackSound
|
||||
{
|
||||
QVector<float> convertBytesTo32BitFloatPCM(const QByteArray input)
|
||||
QVector<float> convertBytesTo32BitFloatPCM(const QByteArray &input)
|
||||
{
|
||||
int inputSamples = input.size() / 2; // 16 bit input, so 2 bytes per sample
|
||||
QVector<float> output;
|
||||
@@ -33,7 +33,7 @@ namespace BlackSound
|
||||
return output;
|
||||
}
|
||||
|
||||
QVector<qint16> convertBytesTo16BitPCM(const QByteArray input)
|
||||
QVector<qint16> convertBytesTo16BitPCM(const QByteArray &input)
|
||||
{
|
||||
const int inputSamples = input.size() / 2; // 16 bit input, so 2 bytes per sample
|
||||
QVector<qint16> output;
|
||||
@@ -45,7 +45,7 @@ namespace BlackSound
|
||||
return output;
|
||||
}
|
||||
|
||||
QVector<qint16> convertFloatBytesTo16BitPCM(const QByteArray input)
|
||||
QVector<qint16> convertFloatBytesTo16BitPCM(const QByteArray &input)
|
||||
{
|
||||
Q_UNUSED(input)
|
||||
// qFatal("Not implemented");
|
||||
|
||||
Reference in New Issue
Block a user