Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
9d0fe725
Commit
9d0fe725
authored
Aug 03, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/mad: rename a few misnamed methods
parent
8a432c9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
MadDecoderPlugin.cxx
src/decoder/plugins/MadDecoderPlugin.cxx
+6
-6
No files found.
src/decoder/plugins/MadDecoderPlugin.cxx
View file @
9d0fe725
...
...
@@ -194,13 +194,13 @@ private:
* Sends the synthesized current frame via
* DecoderClient::SubmitData().
*/
DecoderCommand
S
end
PCM
(
unsigned
i
,
unsigned
pcm_length
)
noexcept
;
DecoderCommand
S
ubmit
PCM
(
unsigned
i
,
unsigned
pcm_length
)
noexcept
;
/**
* Synthesize the current frame and send it via
* DecoderClient::SubmitData().
*/
DecoderCommand
Syn
cAndSend
()
noexcept
;
DecoderCommand
Syn
thAndSubmit
()
noexcept
;
/**
* @return false to stop decoding
...
...
@@ -845,7 +845,7 @@ MadDecoder::UpdateTimerNextFrame() noexcept
}
DecoderCommand
MadDecoder
::
S
end
PCM
(
unsigned
i
,
unsigned
pcm_length
)
noexcept
MadDecoder
::
S
ubmit
PCM
(
unsigned
i
,
unsigned
pcm_length
)
noexcept
{
unsigned
max_samples
=
sizeof
(
output_buffer
)
/
sizeof
(
output_buffer
[
0
])
/
...
...
@@ -874,7 +874,7 @@ MadDecoder::SendPCM(unsigned i, unsigned pcm_length) noexcept
}
inline
DecoderCommand
MadDecoder
::
Syn
cAndSend
()
noexcept
MadDecoder
::
Syn
thAndSubmit
()
noexcept
{
mad_synth_frame
(
&
synth
,
&
frame
);
...
...
@@ -912,7 +912,7 @@ MadDecoder::SyncAndSend() noexcept
pcm_length
-=
drop_end_samples
;
}
auto
cmd
=
S
end
PCM
(
i
,
pcm_length
);
auto
cmd
=
S
ubmit
PCM
(
i
,
pcm_length
);
if
(
cmd
!=
DecoderCommand
::
NONE
)
return
cmd
;
...
...
@@ -940,7 +940,7 @@ MadDecoder::HandleCurrentFrame() noexcept
UpdateTimerNextFrame
();
break
;
case
MadDecoderMuteFrame
:
:
NONE
:
cmd
=
Syn
cAndSend
();
cmd
=
Syn
thAndSubmit
();
UpdateTimerNextFrame
();
if
(
cmd
==
DecoderCommand
::
SEEK
)
{
assert
(
input_stream
.
IsSeekable
());
...
...
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