mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 04:03:35 +02:00
parent
edd99f93de
commit
a1e773eb2d
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,7 @@ Sound::Sound(const QUrl& sampleURL, QObject* parent) :
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sound::replyFinished(QNetworkReply* reply) {
|
void Sound::replyFinished(QNetworkReply* reply) {
|
||||||
|
|
||||||
// replace our byte array with the downloaded data
|
// replace our byte array with the downloaded data
|
||||||
QByteArray rawAudioByteArray = reply->readAll();
|
QByteArray rawAudioByteArray = reply->readAll();
|
||||||
|
|
||||||
|
@ -66,6 +67,7 @@ void Sound::replyFinished(QNetworkReply* reply) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sound::downSample(const QByteArray& rawAudioByteArray) {
|
void Sound::downSample(const QByteArray& rawAudioByteArray) {
|
||||||
|
|
||||||
// assume that this was a RAW file and is now an array of samples that are
|
// assume that this was a RAW file and is now an array of samples that are
|
||||||
// signed, 16-bit, 48Khz, mono
|
// signed, 16-bit, 48Khz, mono
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue