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
7a68b1e7
Commit
7a68b1e7
authored
Feb 29, 2020
by
Thomas Klausner
Committed by
Max Kellermann
Feb 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt SolarisOutputPlugin.cxx to be usable on NetBSD.
parent
d5468dfe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
NEWS
NEWS
+2
-0
SolarisOutputPlugin.cxx
src/output/plugins/SolarisOutputPlugin.cxx
+8
-3
No files found.
NEWS
View file @
7a68b1e7
ver 0.21.21 (not yet released)
* decoder
- gme: ignore empty tags
* output
- solaris: port to NetBSD
ver 0.21.20 (2020/02/16)
* decoder
...
...
src/output/plugins/SolarisOutputPlugin.cxx
View file @
7a68b1e7
...
...
@@ -22,22 +22,23 @@
#include "system/FileDescriptor.hxx"
#include "system/Error.hxx"
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#if
def __sun
#if
defined(__sun)
#include <sys/audio.h>
#include <sys/stropts.h>
#elif defined(__NetBSD__)
#include <sys/audioio.h>
#else
/* some fake declarations that allow build this plugin on systems
other than Solaris, just to see if it compiles */
#include <sys/ioctl.h>
#ifndef I_FLUSH
#define I_FLUSH 0
#endif
...
...
@@ -147,7 +148,11 @@ SolarisOutput::Play(const void *chunk, size_t size)
void
SolarisOutput
::
Cancel
()
noexcept
{
#if defined(AUDIO_FLUSH)
ioctl
(
fd
.
Get
(),
AUDIO_FLUSH
);
#elif defined(I_FLUSH)
ioctl
(
fd
.
Get
(),
I_FLUSH
);
#endif
}
const
struct
AudioOutputPlugin
solaris_output_plugin
=
{
...
...
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