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
c51fe089
Commit
c51fe089
authored
Oct 26, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/Dop: add "noexcept"
parent
fee9f148
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
PcmDop.cxx
src/pcm/PcmDop.cxx
+3
-3
PcmDop.hxx
src/pcm/PcmDop.hxx
+1
-1
No files found.
src/pcm/PcmDop.cxx
View file @
c51fe089
...
...
@@ -27,21 +27,21 @@
constexpr
static
inline
uint32_t
pcm_two_dsd_to_dop_marker1
(
uint8_t
a
,
uint8_t
b
)
pcm_two_dsd_to_dop_marker1
(
uint8_t
a
,
uint8_t
b
)
noexcept
{
return
0xff050000
|
(
a
<<
8
)
|
b
;
}
constexpr
static
inline
uint32_t
pcm_two_dsd_to_dop_marker2
(
uint8_t
a
,
uint8_t
b
)
pcm_two_dsd_to_dop_marker2
(
uint8_t
a
,
uint8_t
b
)
noexcept
{
return
0xfffa0000
|
(
a
<<
8
)
|
b
;
}
ConstBuffer
<
uint32_t
>
pcm_dsd_to_dop
(
PcmBuffer
&
buffer
,
unsigned
channels
,
ConstBuffer
<
uint8_t
>
_src
)
ConstBuffer
<
uint8_t
>
_src
)
noexcept
{
assert
(
audio_valid_channel_count
(
channels
));
assert
(
_src
.
size
%
channels
==
0
);
...
...
src/pcm/PcmDop.hxx
View file @
c51fe089
...
...
@@ -34,6 +34,6 @@ template<typename T> struct ConstBuffer;
*/
ConstBuffer
<
uint32_t
>
pcm_dsd_to_dop
(
PcmBuffer
&
buffer
,
unsigned
channels
,
ConstBuffer
<
uint8_t
>
src
);
ConstBuffer
<
uint8_t
>
src
)
noexcept
;
#endif
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