Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Switch
RetroArch
snes9x
Commits
29f442db
Commit
29f442db
authored
Jun 08, 2018
by
Dwedit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetic - change tabs to spaces to match surrounding code
parent
d915fdaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
apu/hermite_resampler.h
apu/hermite_resampler.h
+12
-12
No files found.
apu/hermite_resampler.h
View file @
29f442db
...
...
@@ -66,12 +66,12 @@ class HermiteResampler : public Resampler
void
read
(
short
*
data
,
int
num_samples
)
{
//If we are outputting the exact same ratio as the input, pull directly from the input buffer
if
(
r_step
==
1.0
)
{
ring_buffer
::
pull
((
unsigned
char
*
)
data
,
num_samples
*
sizeof
(
short
));
return
;
}
//If we are outputting the exact same ratio as the input, pull directly from the input buffer
if
(
r_step
==
1.0
)
{
ring_buffer
::
pull
((
unsigned
char
*
)
data
,
num_samples
*
sizeof
(
short
));
return
;
}
int
i_position
=
start
>>
1
;
int
max_samples
=
buffer_size
>>
1
;
...
...
@@ -127,13 +127,13 @@ class HermiteResampler : public Resampler
inline
int
avail
(
void
)
{
//If we are outputting the exact same ratio as the input, find out directly from the input buffer
if
(
r_step
==
1.0
)
{
return
(
ring_buffer
::
space_filled
()
+
sizeof
(
short
)
-
1
)
/
sizeof
(
short
);
}
//If we are outputting the exact same ratio as the input, find out directly from the input buffer
if
(
r_step
==
1.0
)
{
return
(
ring_buffer
::
space_filled
()
+
sizeof
(
short
)
-
1
)
/
sizeof
(
short
);
}
return
(
int
)
floor
(((
size
>>
2
)
-
r_frac
)
/
r_step
)
*
2
;
return
(
int
)
floor
(((
size
>>
2
)
-
r_frac
)
/
r_step
)
*
2
;
}
};
...
...
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