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
e69fd030
Commit
e69fd030
authored
5 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/Export: rename CalcSourceSize() to CalcInputSize()
parent
f43cafbf
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
AlsaOutputPlugin.cxx
src/output/plugins/AlsaOutputPlugin.cxx
+1
-1
OSXOutputPlugin.cxx
src/output/plugins/OSXOutputPlugin.cxx
+1
-1
OssOutputPlugin.cxx
src/output/plugins/OssOutputPlugin.cxx
+1
-1
Export.cxx
src/pcm/Export.cxx
+1
-1
Export.hxx
src/pcm/Export.hxx
+1
-1
No files found.
src/output/plugins/AlsaOutputPlugin.cxx
View file @
e69fd030
...
...
@@ -884,7 +884,7 @@ AlsaOutput::Play(const void *chunk, size_t size)
size_t
bytes_written
=
ring_buffer
->
push
((
const
uint8_t
*
)
e
.
data
,
e
.
size
);
if
(
bytes_written
>
0
)
return
pcm_export
->
Calc
Source
Size
(
bytes_written
);
return
pcm_export
->
Calc
Input
Size
(
bytes_written
);
/* now that the ring_buffer is full, we can activate
the socket handlers to trigger the first
...
...
This diff is collapsed.
Click to expand it.
src/output/plugins/OSXOutputPlugin.cxx
View file @
e69fd030
...
...
@@ -890,7 +890,7 @@ OSXOutput::Play(const void *chunk, size_t size)
return
size
;
size_t
bytes_written
=
ring_buffer
->
push
((
const
uint8_t
*
)
e
.
data
,
e
.
size
);
return
pcm_export
->
Calc
Source
Size
(
bytes_written
);
return
pcm_export
->
Calc
Input
Size
(
bytes_written
);
}
#endif
return
ring_buffer
->
push
((
const
uint8_t
*
)
chunk
,
size
);
...
...
This diff is collapsed.
Click to expand it.
src/output/plugins/OssOutputPlugin.cxx
View file @
e69fd030
...
...
@@ -681,7 +681,7 @@ OssOutput::Play(const void *chunk, size_t size)
ret
=
fd
.
Write
(
chunk
,
size
);
if
(
ret
>
0
)
{
#ifdef AFMT_S24_PACKED
ret
=
pcm_export
->
Calc
Source
Size
(
ret
);
ret
=
pcm_export
->
Calc
Input
Size
(
ret
);
#endif
return
ret
;
}
...
...
This diff is collapsed.
Click to expand it.
src/pcm/Export.cxx
View file @
e69fd030
...
...
@@ -266,7 +266,7 @@ PcmExport::Export(ConstBuffer<void> data) noexcept
}
size_t
PcmExport
::
Calc
Source
Size
(
size_t
size
)
const
noexcept
PcmExport
::
Calc
Input
Size
(
size_t
size
)
const
noexcept
{
if
(
pack24
)
/* 32 bit to 24 bit conversion (4 to 3 bytes) */
...
...
This diff is collapsed.
Click to expand it.
src/pcm/Export.hxx
View file @
e69fd030
...
...
@@ -205,7 +205,7 @@ public:
* pcm_export() source buffer.
*/
gcc_pure
size_t
Calc
Source
Size
(
size_t
dest_size
)
const
noexcept
;
size_t
Calc
Input
Size
(
size_t
dest_size
)
const
noexcept
;
};
#endif
This diff is collapsed.
Click to expand it.
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