Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Cortado
Commits
228cf4aa
Commit
228cf4aa
authored
Mar 18, 2010
by
ogg.k.ogg.k
Browse files
The "compatible" audio sink isn't *that* compatible. It can't work on
JDK 1.1.6 from Sun; if it can't be used, continue without audio
parent
2d2d1fdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/com/fluendo/player/CortadoPipeline.java
View file @
228cf4aa
...
...
@@ -670,11 +670,20 @@ public class CortadoPipeline extends Pipeline implements PadListener, CapsListen
Debug
.
log
(
Debug
.
INFO
,
"using high quality javax.sound backend"
);
}
catch
(
Throwable
e
)
{
s
=
(
com
.
fluendo
.
plugin
.
AudioSink
)
ElementFactory
.
makeByName
(
"audiosinksa"
,
"audiosink"
);
Debug
.
log
(
Debug
.
INFO
,
"using low quality sun.audio backend"
);
try
{
Class
.
forName
(
"sun.audio.AudioStream"
);
Class
.
forName
(
"sun.audio.AudioPlayer"
);
s
=
(
com
.
fluendo
.
plugin
.
AudioSink
)
ElementFactory
.
makeByName
(
"audiosinksa"
,
"audiosink"
);
Debug
.
log
(
Debug
.
INFO
,
"using low quality sun.audio backend"
);
}
catch
(
Throwable
e2
)
{
s
=
null
;
Debug
.
log
(
Debug
.
INFO
,
"No audio backend available"
);
}
}
if
(
s
==
null
)
{
noSuchElement
(
"audiosink"
);
Debug
.
warn
(
"Failed to create an audio sink, continuing anyway"
);
//noSuchElement ("audiosink");
return
null
;
}
if
(!
s
.
test
())
{
...
...
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