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
f6e96edc
Commit
f6e96edc
authored
Oct 10, 2006
by
J. Alexander Treuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow an ogg quality of -1 to be specified.
git-svn-id:
https://svn.musicpd.org/mpd/trunk@4893
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
4c80121b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
audioOutput_shout.c
src/audioOutputs/audioOutput_shout.c
+5
-5
No files found.
src/audioOutputs/audioOutput_shout.c
View file @
f6e96edc
...
...
@@ -81,7 +81,7 @@ static ShoutData *newShoutData(void)
ret
->
tag
=
NULL
;
ret
->
tagToSend
=
0
;
ret
->
bitrate
=
-
1
;
ret
->
quality
=
-
1
.
0
;
ret
->
quality
=
-
2
.
0
;
ret
->
connAttempts
=
0
;
ret
->
lastAttempt
=
0
;
ret
->
audioFormat
=
NULL
;
...
...
@@ -177,9 +177,9 @@ static int myShout_initDriver(AudioOutput * audioOutput, ConfigParam * param)
sd
->
quality
=
strtod
(
blockParam
->
value
,
&
test
);
if
(
*
test
!=
'\0'
||
sd
->
quality
<
0
.
0
||
sd
->
quality
>
10
.
0
)
{
if
(
*
test
!=
'\0'
||
sd
->
quality
<
-
1
.
0
||
sd
->
quality
>
10
.
0
)
{
ERROR
(
"shout quality
\"
%s
\"
is not a number in the "
"range
0-
10, line %i
\n
"
,
blockParam
->
value
,
"range
-1 to
10, line %i
\n
"
,
blockParam
->
value
,
blockParam
->
line
);
exit
(
EXIT_FAILURE
);
}
...
...
@@ -257,7 +257,7 @@ static int myShout_initDriver(AudioOutput * audioOutput, ConfigParam * param)
shout_set_audio_info
(
sd
->
shoutConn
,
SHOUT_AI_SAMPLERATE
,
temp
);
if
(
sd
->
quality
>=
0
)
{
if
(
sd
->
quality
>=
-
1
.
0
)
{
snprintf
(
temp
,
sizeof
(
temp
),
"%2.2f"
,
sd
->
quality
);
shout_set_audio_info
(
sd
->
shoutConn
,
SHOUT_AI_QUALITY
,
temp
);
...
...
@@ -418,7 +418,7 @@ static int initEncoder(ShoutData * sd)
{
vorbis_info_init
(
&
(
sd
->
vi
));
if
(
sd
->
quality
>=
0
)
{
if
(
sd
->
quality
>=
-
1
.
0
)
{
if
(
0
!=
vorbis_encode_init_vbr
(
&
(
sd
->
vi
),
sd
->
audioFormat
->
channels
,
sd
->
audioFormat
->
sampleRate
,
...
...
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