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
78a73eac
Commit
78a73eac
authored
Jan 11, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/Export: add (dummy) method Cancel()
We'll have some code for it soon.
parent
533cb99c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
AlsaOutputPlugin.cxx
src/output/plugins/AlsaOutputPlugin.cxx
+2
-0
OssOutputPlugin.cxx
src/output/plugins/OssOutputPlugin.cxx
+4
-0
PcmExport.hxx
src/pcm/PcmExport.hxx
+6
-0
No files found.
src/output/plugins/AlsaOutputPlugin.cxx
View file @
78a73eac
...
@@ -826,6 +826,8 @@ AlsaOutput::Cancel()
...
@@ -826,6 +826,8 @@ AlsaOutput::Cancel()
must_prepare
=
true
;
must_prepare
=
true
;
snd_pcm_drop
(
pcm
);
snd_pcm_drop
(
pcm
);
pcm_export
->
Reset
();
}
}
inline
void
inline
void
...
...
src/output/plugins/OssOutputPlugin.cxx
View file @
78a73eac
...
@@ -659,6 +659,10 @@ OssOutput::Cancel()
...
@@ -659,6 +659,10 @@ OssOutput::Cancel()
ioctl
(
fd
,
SNDCTL_DSP_RESET
,
0
);
ioctl
(
fd
,
SNDCTL_DSP_RESET
,
0
);
DoClose
();
DoClose
();
}
}
#ifdef AFMT_S24_PACKED
pcm_export
->
Reset
();
#endif
}
}
inline
size_t
inline
size_t
...
...
src/pcm/PcmExport.hxx
View file @
78a73eac
...
@@ -150,6 +150,12 @@ struct PcmExport {
...
@@ -150,6 +150,12 @@ struct PcmExport {
Params
params
);
Params
params
);
/**
/**
* Reset the filter's state, e.g. drop/flush buffers.
*/
void
Reset
()
{
}
/**
* Calculate the size of one output frame.
* Calculate the size of one output frame.
*/
*/
gcc_pure
gcc_pure
...
...
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