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
1e0af2da
Commit
1e0af2da
authored
Aug 10, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/pipewire: add type alias for boost::lockfree::spsc_queue
parent
4ea2ea2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
PipeWireOutputPlugin.cxx
src/output/plugins/PipeWireOutputPlugin.cxx
+8
-3
No files found.
src/output/plugins/PipeWireOutputPlugin.cxx
View file @
1e0af2da
...
...
@@ -61,7 +61,11 @@ class PipeWireOutput final : AudioOutput {
std
::
size_t
frame_size
;
boost
::
lockfree
::
spsc_queue
<
std
::
byte
>
*
ring_buffer
;
/**
* This buffer passes PCM data from Play() to Process().
*/
using
RingBuffer
=
boost
::
lockfree
::
spsc_queue
<
std
::
byte
>
;
RingBuffer
*
ring_buffer
;
const
uint32_t
target_id
;
...
...
@@ -360,8 +364,9 @@ PipeWireOutput::Open(AudioFormat &audio_format)
interrupted
=
false
;
/* allocate a ring buffer of 1 second */
ring_buffer
=
new
boost
::
lockfree
::
spsc_queue
<
std
::
byte
>
(
frame_size
*
audio_format
.
sample_rate
);
const
std
::
size_t
ring_buffer_size
=
frame_size
*
audio_format
.
sample_rate
;
ring_buffer
=
new
RingBuffer
(
ring_buffer_size
);
const
struct
spa_pod
*
params
[
1
];
...
...
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