Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
77cc89e3
Commit
77cc89e3
authored
Sep 13, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround spatializer bugs.
parent
32b11b0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
modules/audio_filter/spatializer/comb.hpp
modules/audio_filter/spatializer/comb.hpp
+8
-0
modules/audio_filter/spatializer/denormals.h
modules/audio_filter/spatializer/denormals.h
+1
-3
No files found.
modules/audio_filter/spatializer/comb.hpp
View file @
77cc89e3
...
@@ -35,6 +35,13 @@ private:
...
@@ -35,6 +35,13 @@ private:
inline
float
comb
::
process
(
float
input
)
inline
float
comb
::
process
(
float
input
)
{
{
#if 1
/* FIXME FIXME FIXME
* comb::process is completly broken so ignore it for now */
return
0.0
;
#else
float
output
;
float
output
;
output
=
undenormalise
(
buffer
[
bufidx
]
);
output
=
undenormalise
(
buffer
[
bufidx
]
);
...
@@ -46,6 +53,7 @@ inline float comb::process(float input)
...
@@ -46,6 +53,7 @@ inline float comb::process(float input)
if
(
++
bufidx
>=
bufsize
)
bufidx
=
0
;
if
(
++
bufidx
>=
bufsize
)
bufidx
=
0
;
return
output
;
return
output
;
#endif
}
}
#endif //_comb_
#endif //_comb_
...
...
modules/audio_filter/spatializer/denormals.h
View file @
77cc89e3
...
@@ -12,9 +12,7 @@
...
@@ -12,9 +12,7 @@
static
inline
float
undenormalise
(
float
f
)
static
inline
float
undenormalise
(
float
f
)
{
{
union
{
float
f
;
uint32_t
u
;
}
data
;
if
(
fpclassify
(
f
)
==
FP_SUBNORMAL
)
data
.
f
=
f
;
if
(
(
data
.
u
&
0x7f800000
)
==
0
)
return
0
.
0
;
return
0
.
0
;
return
f
;
return
f
;
}
}
...
...
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