Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
audiowmark
Commits
e342441e
Commit
e342441e
authored
Dec 11, 2019
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up error blurb code (no longer needed).
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
625ee5c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
12 deletions
+4
-12
TODO
src/TODO
+1
-4
stdoutwavoutputstream.hh
src/stdoutwavoutputstream.hh
+0
-6
teststream.cc
src/teststream.cc
+3
-2
No files found.
src/TODO
View file @
e342441e
...
...
@@ -2,12 +2,9 @@ possible improvements:
- dynamic bit strength
streaming:
- need explicit Error objects
- logging
- raw streams
- raw streams
-> document in -h?
- mp3 indexing / detect (resync-limit)
- stdio error handling
- document in README
- final documentation
- --snr
- --quiet
...
...
src/stdoutwavoutputstream.hh
View file @
e342441e
...
...
@@ -8,7 +8,6 @@
class
StdoutWavOutputStream
:
public
AudioOutputStream
{
std
::
string
m_error_blurb
;
int
m_bit_depth
=
0
;
int
m_sample_rate
=
0
;
int
m_n_channels
=
0
;
...
...
@@ -32,11 +31,6 @@ public:
int
sample_rate
()
const
override
;
int
bit_depth
()
const
override
;
int
n_channels
()
const
override
;
const
char
*
error_blurb
()
const
{
return
m_error_blurb
.
c_str
();
}
};
#endif
src/teststream.cc
View file @
e342441e
...
...
@@ -24,9 +24,10 @@ main (int argc, char **argv)
fprintf
(
stderr
,
"teststream: open input failed: %s
\n
"
,
err
.
message
());
return
1
;
}
if
(
!
out
.
open
(
in
.
n_channels
(),
in
.
sample_rate
(),
16
,
in
.
n_frames
()))
err
=
out
.
open
(
in
.
n_channels
(),
in
.
sample_rate
(),
16
,
in
.
n_frames
());
if
(
err
)
{
fprintf
(
stderr
,
"teststream: open output failed: %s
\n
"
,
out
.
error_blurb
());
fprintf
(
stderr
,
"teststream: open output failed: %s
\n
"
,
err
.
message
());
return
1
;
}
vector
<
float
>
samples
;
...
...
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