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
bfd26192
Commit
bfd26192
authored
Sep 22, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AudioFormat: remove obsolete method GetTimeToSize()
parent
84de8884
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
AudioFormat.hxx
src/AudioFormat.hxx
+0
-12
No files found.
src/AudioFormat.hxx
View file @
bfd26192
...
...
@@ -149,12 +149,6 @@ struct AudioFormat {
*/
unsigned
GetFrameSize
()
const
;
/**
* Returns the floating point factor which converts a time
* span to a storage size in bytes.
*/
double
GetTimeToSize
()
const
;
template
<
typename
D
>
constexpr
auto
TimeToFrames
(
D
t
)
const
noexcept
{
using
Period
=
typename
D
::
period
;
...
...
@@ -236,12 +230,6 @@ AudioFormat::GetFrameSize() const
return
GetSampleSize
()
*
channels
;
}
inline
double
AudioFormat
::
GetTimeToSize
()
const
{
return
sample_rate
*
GetFrameSize
();
}
/**
* Renders the #AudioFormat object into a string, e.g. for printing
* it in a log file.
...
...
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