Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Christian R. Helmrich
exhale
Commits
8b561924
Commit
8b561924
authored
Oct 28, 2020
by
Christian R. Helmrich
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix note print-out
parent
39dc1852
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/app/exhaleApp.cpp
src/app/exhaleApp.cpp
+2
-2
src/app/exhaleAppPch.cpp
src/app/exhaleAppPch.cpp
+2
-2
No files found.
src/app/exhaleApp.cpp
View file @
8b561924
...
...
@@ -444,7 +444,7 @@ int main (const int argc, char* argv[])
return
16384
;
// preset isn't supported
}
const
unsigned
frameLength
=
(
3
+
coreSbrFrameLengthIndex
)
<<
8
;
const
unsigned
frameLength
=
(
3
+
coreSbrFrameLengthIndex
)
<<
8
;
// dec. output
const
unsigned
startLength
=
(
frameLength
*
25
)
>>
4
;
// encoder PCM look-ahead
if
(
readStdin
)
// configure stdin
...
...
@@ -566,7 +566,7 @@ int main (const int argc, char* argv[])
goto
mainFinish
;
// ask for resampling
}
if
(
wavReader
.
getSampleRate
()
>
32000
&&
variableCoreBitRateMode
=
=
1
)
if
(
wavReader
.
getSampleRate
()
>
32000
&&
variableCoreBitRateMode
<
=
1
)
{
#if ENABLE_RESAMPLING
if
(
wavReader
.
getSampleRate
()
==
48000
)
...
...
src/app/exhaleAppPch.cpp
View file @
8b561924
...
...
@@ -12,14 +12,14 @@
// ISO/IEC 23003-3 USAC Table 67
static
const
unsigned
supportedSamplingRates
[
16
]
=
{
96000
,
88200
,
64000
,
48000
,
44100
,
32000
,
24000
,
22050
,
16000
,
12000
,
11025
,
8000
,
7350
,
// AAC
96000
,
88200
,
64000
,
48000
,
44100
,
32000
,
24000
,
22050
,
16000
,
12000
,
11025
,
8000
,
7350
,
// AAC
57600
,
38400
,
19200
// BL USAC
};
// public sampling rate function
bool
isSamplingRateSupported
(
const
unsigned
samplingRate
)
{
for
(
u
nsigned
i
=
0
;
i
<
16
;
i
++
)
for
(
u
int8_t
i
=
0
;
i
<
16
;
i
++
)
{
if
(
samplingRate
==
supportedSamplingRates
[
i
])
return
true
;
}
...
...
Christian R. Helmrich
@ecodis
mentioned in issue
#11 (closed)
·
Oct 28, 2020
mentioned in issue
#11 (closed)
mentioned in issue #11
Toggle commit list
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