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
b43bf4dd
Commit
b43bf4dd
authored
Oct 08, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v0.16.x'
parents
14424281
5ed0eb51
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
12 deletions
+25
-12
NEWS
NEWS
+2
-0
configure.ac
configure.ac
+9
-1
alsa_output_plugin.c
src/output/alsa_output_plugin.c
+5
-2
openal_output_plugin.c
src/output/openal_output_plugin.c
+9
-9
No files found.
NEWS
View file @
b43bf4dd
...
...
@@ -39,6 +39,8 @@ ver 0.16.5 (2010/??/??)
- ffmpeg: higher precision timestamps
- ffmpeg: don't require key frame for seeking
- fix CUE track seeking
* output:
- openal: auto-fallback to mono if channel count is unsupported
* player:
- make seeking to CUE track more reliable
- the "seek" command works when MPD is stopped
...
...
configure.ac
View file @
b43bf4dd
...
...
@@ -36,7 +36,15 @@ AC_PROG_MAKE_SET
PKG_PROG_PKG_CONFIG
AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
[], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
[], [with_systemdsystemunitdir=no])
if test "x$with_systemdsystemunitdir" = xyes; then
AC_MSG_CHECKING(for systemd)
with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
if test -z "$with_systemdsystemunitdir"; then
AC_MSG_ERROR([Failed to detect systemd])
fi
AC_MSG_RESULT([$with_systemdsystemunitdir])
fi
if test "x$with_systemdsystemunitdir" != xno; then
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
fi
...
...
src/output/alsa_output_plugin.c
View file @
b43bf4dd
...
...
@@ -193,6 +193,9 @@ static snd_pcm_format_t
get_bitformat
(
enum
sample_format
sample_format
)
{
switch
(
sample_format
)
{
case
SAMPLE_FORMAT_UNDEFINED
:
return
SND_PCM_FORMAT_UNKNOWN
;
case
SAMPLE_FORMAT_S8
:
return
SND_PCM_FORMAT_S8
;
...
...
@@ -209,10 +212,10 @@ get_bitformat(enum sample_format sample_format)
case
SAMPLE_FORMAT_S32
:
return
SND_PCM_FORMAT_S32
;
}
default:
assert
(
false
);
return
SND_PCM_FORMAT_UNKNOWN
;
}
}
static
snd_pcm_format_t
...
...
src/output/openal_output_plugin.c
View file @
b43bf4dd
...
...
@@ -67,26 +67,26 @@ openal_audio_format(struct audio_format *audio_format)
return
AL_FORMAT_STEREO16
;
if
(
audio_format
->
channels
==
1
)
return
AL_FORMAT_MONO16
;
break
;
/* fall back to mono */
audio_format
->
channels
=
1
;
return
openal_audio_format
(
audio_format
);
case
SAMPLE_FORMAT_S8
:
if
(
audio_format
->
channels
==
2
)
return
AL_FORMAT_STEREO8
;
if
(
audio_format
->
channels
==
1
)
return
AL_FORMAT_MONO8
;
break
;
/* fall back to mono */
audio_format
->
channels
=
1
;
return
openal_audio_format
(
audio_format
);
default:
/* fall back to 16 bit */
audio_format
->
format
=
SAMPLE_FORMAT_S16
;
if
(
audio_format
->
channels
==
2
)
return
AL_FORMAT_STEREO16
;
if
(
audio_format
->
channels
==
1
)
return
AL_FORMAT_MONO16
;
break
;
return
openal_audio_format
(
audio_format
);
}
return
0
;
}
static
bool
...
...
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