Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
K3b
Commits
0b62c614
Commit
0b62c614
authored
Feb 23, 2020
by
Albert Astals Cid
Browse files
Merge remote-tracking branch 'origin/release/19.12'
parents
51a4a1f4
183d20b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/decoder/libsndfile/k3blibsndfiledecoder.cpp
View file @
0b62c614
...
...
@@ -118,7 +118,7 @@ bool K3bLibsndfileDecoder::analyseFileInternal( K3b::Msf& frames, int& samplerat
addTechnicalInfo
(
i18n
(
"Channels"
),
QString
::
number
(
d
->
sndinfo
.
channels
)
);
addTechnicalInfo
(
i18n
(
"Sampling Rate"
),
i18n
(
"%1 Hz"
,
d
->
sndinfo
.
samplerate
)
);
frames
=
(
unsigned
long
)
ceil
(
d
->
sndinfo
.
frames
/
d
->
sndinfo
.
samplerate
*
75.0
);
frames
=
(
unsigned
long
)
ceil
(
75.0
*
d
->
sndinfo
.
frames
/
d
->
sndinfo
.
samplerate
);
samplerate
=
d
->
sndinfo
.
samplerate
;
ch
=
d
->
sndinfo
.
channels
;
...
...
@@ -161,10 +161,6 @@ int K3bLibsndfileDecoder::decodeInternal( char* data, int maxLen )
qDebug
()
<<
"(K3bLibsndfileDecoder::decodeInternal) successfully finished decoding."
;
return
0
;
}
else
if
(
read
!=
maxLen
)
{
qDebug
()
<<
"(K3bLibsndfileDecoder::decodeInternal) read:"
<<
read
<<
" expected:"
<<
maxLen
;
return
-
1
;
}
else
return
read
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment