Audio output device - controlling Subsonic's selection?

Need help? Post your questions here.

Moderator: moderators

Postby bushman4 » Fri Mar 18, 2011 2:45 pm

Tried to add it to the wiki, but I guess I can't edit...
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Postby tmaddison » Fri Mar 18, 2011 3:14 pm

Success!

Didn't even occur to me it would go in vmoptions - I assumed that had something to do with Virtual Machine options, which I'm not using...

Appears to have worked so far... have not tried all user logins, rebooted, tested it's interaction with other programs on the machine completely, etc - but now logging in as an Admin and choosing a player set up in Jukebox mode appears to play audio on the local machine using the soundcard chosen!

Gotta go to work now, going to do some further testing (for instance, changing the soundcard option in vmoptions and making sure that reroutes the sound, so this is not just a coincidence...) this weekend, will report back on that.

This is great, guys! Thanks to the Wizards here for the help! Hopefully this post will show in searches by anyone else wanting to use Subsonic with specific sound cards on a Windows XP machine.
tmaddison
 
Posts: 18
Joined: Sun Feb 28, 2010 2:16 pm

Postby maxslug » Fri Mar 18, 2011 4:57 pm

Thanks bushman, I added that to the wiki.

If you remove the single quotes, what would you do if your sound card name has a space in it? I think you will need quotes somewhere.

EDIT: bushman, go onto the 'wiki' thread and request write permission. Everyone is welcome.

-m
maxslug
 
Posts: 44
Joined: Tue Oct 26, 2010 11:23 pm

Postby bushman4 » Fri Mar 18, 2011 5:02 pm

Good point about the single quotes... they probably are necessary. The OP can probably tell us... :wink:

Will do on the Wiki.
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Postby tmaddison » Fri Mar 18, 2011 5:09 pm

Just fyi, my sound card Windows device name has several spaces in it and it seemed to work fine without the quotes, but again I have not yet tested this completely.
tmaddison
 
Posts: 18
Joined: Sun Feb 28, 2010 2:16 pm

Re: Audio output device - controlling Subsonic's selection?

Postby edzonn » Sun May 06, 2012 6:31 pm

Hi All,

I'm at my wits end trying to get audio directed to the correct output device. I have a single sound card but it has two outputs as indicated by running the audiodevlist java program (see output below). I am using Windows 7 64bit and I can dedicate the "Stereo" or "Port Stereo" device to WMP so that all music is sent to my stereo without being interupted by computer sounds which come out of the default "Computer" or "Port Computer" audio output. Anyway I would like to do the same with Subsonic and it's Jukebox mode but the sound always comes out my computer speakers and is not directed to the dedicated output connected to my stereo.

C:\Program Files\Java\jdk1.7.0_01\bin>java audioDevList
Available mixers:
Primary Sound Driver
Computer (High Definition Audio Device)
Stereo (High Definition Audio Device)
Port Computer (High Definition Audio
Port Stereo (High Definition Audio D

I have tried modifying the "subsonic-agent.exe.vmoptions" file using the available mixers listed above but no combination of "Port Stereo", "Port Stereo (High Definition Audio D" or "Stereo" or "Stereo (High Definition Audio Device)" seems to work? Here's is one example of my "subsonic-agent.exe.vmoptions" file that does not work:

"-Djavax.sound.sampled.SourceDataLine=#Port Stereo"
-Xmx16m

Any help greatly appreciated!

Thanks,
Ed
edzonn
 
Posts: 3
Joined: Sun May 06, 2012 6:00 pm

Re: Audio output device - controlling Subsonic's selection?

Postby bushman4 » Mon May 07, 2012 11:54 am

Assuming you are using the standard Windows installation, you want to set the options in subsonic-service.exe.vmoptions, not subsonic-agent.exe.vmoptions.

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: Audio output device - controlling Subsonic's selection?

Postby edzonn » Fri May 11, 2012 2:41 am

:oops: Glenn, Thank you for your help. I don't know how I missed that but all is working great now! For the record here is my version of subsonic-service.exe.vmoptions in case it helps someone else down the road.

Cheers,
Ed


-Xmx100m
-verbose:gc
-Dsubsonic.host=0.0.0.0
-Dsubsonic.port=4040
-Dsubsonic.httpsPort=0
-Dsubsonic.contextPath=/
-Djavax.sound.sampled.SourceDataLine=#Stereo (High Definition Audio Device)
edzonn
 
Posts: 3
Joined: Sun May 06, 2012 6:00 pm

Re: Audio output device - controlling Subsonic's selection?

Postby AgentBignose » Sat Nov 25, 2017 12:29 pm

I was looking for a solution on this for such a long time, as you can see from my post:
http://forum.subsonic.org/forum/viewtopic.php?f=2&t=15466&p=71397#p71397

This topic also didn't help me all the way:
http://forum.subsonic.org/forum/viewtopic.php?f=2&t=2038&start=30

And was so happy to find this topic!


Sadly it's not working for me :-(

This is the output of my audiDevList:
Code: Select all
Available mixers:
Primärer Soundtreiber
Lautsprecher (High Definition Audio-Gerät)
Digitalaudio (S/PDIF) (High Definition Audio-Gerät)
Bluetooth-Audio-Renderer ([TV]Samsung LED55 (Stereo Audio))
Primärer Soundaufnahmetreiber
Digitalaudio (S/PDIF) (High Def
Port Lautsprecher (High Definition A
Port Digitalaudio (S/PDIF) (High Def
Port Bluetooth-Audio-Renderer ([TV]S
Port Digitalaudio (S/PDIF) (High Def


and this my subsonic-service.exe.vmoptions:
Code: Select all
-Xmx250m
-verbose:gc
-Dsubsonic.host=0.0.0.0
-Dsubsonic.port=888
-Dsubsonic.httpsPort=0
-Dsubsonic.contextPath=/
-Djavax.sound.sampled.SourceDataLine=#Lautsprecher (High Definition Audio-Gerät)


At first I forgot the '#' after "-Djavax.sound.sampled.SourceDataLine=" but now its there.
I also tried "Port Lautsprecher (High Definition A" and "Lautsprecher" and using "", nothing helped.

The music is allways played over my Digital Output, with is connected to the TV over HDMI, but I want it to be send to the analog Output so my AVR can play it in zone 2.

I am using the Jukebox function of the official Android Subsonic App.
But with the service process using the sound device of the parameter, all jukebox users should output over that right?

I am running the Subsonic server on a Windows 8.1 machine using the windows installer with the jetty server.
Info:
Code: Select all
License   Subsonic Premium
Version   6.1.1 (build fc853b) – 31. Mai 2017
Server   jetty-6.1.x, java 1.8.0_151, HSQLDB, Windows 8.1 (62,9 MB / 106,5 MB)


I also checked, if I change the max memory entry in "subsonic-service.exe.vmoptions" the change is there in subsonics control panel under settings, so it seems to load the correct settingsfile.

To bad there is no GUI option to select the sound device in the control Panel, like for the port and context path.

The log also doesn't give any error:
Code: Select all
[2017-11-25 13:15:24,673] INFO HsqlDaoHelper - Checking database schema.
[2017-11-25 13:15:25,965] INFO HsqlDaoHelper - Done checking database schema.
[2017-11-25 13:15:26,114] INFO SettingsService - Java: 1.8.0_151, OS: Windows 8.1
[2017-11-25 13:15:26,183] INFO VersionService - Resolved local Subsonic version to: 6.1.1
[2017-11-25 13:15:26,572] INFO MediaScannerService - Automatic media library scanning scheduled to run every 1 day(s), starting at Sun Nov 26 03:00:00 CET 2017
[2017-11-25 13:15:26,660] INFO UPnPService - Starting UPnP service...
[2017-11-25 13:15:26,710] INFO PodcastService - Automatic Podcast update scheduled to run every 24 hour(s), starting at Sat Nov 25 13:20:26 CET 2017
[2017-11-25 13:15:26,937] INFO UPnPService - Disabling UPnP/DLNA media server
[2017-11-25 13:15:26,937] INFO UPnPService - Starting UPnP service - Done!
[2017-11-25 13:15:31,651] INFO BootstrapVerificationFilter - Servlet container: jetty-6.1.x
[2017-11-25 13:15:36,725] INFO NetworkService - Successfully forwarding port 888.
[2017-11-25 13:20:26,711] INFO PodcastService - Starting scheduled Podcast refresh.
[2017-11-25 13:20:26,712] INFO PodcastService - Completed scheduled Podcast refresh.
[2017-11-25 13:23:14,432] INFO VersionService - Resolved latest Subsonic final version to: 6.1.3
[2017-11-25 13:23:14,432] INFO VersionService - Resolved latest Subsonic beta version to: 6.1.beta2
[2017-11-25 13:24:18,779] INFO JukeboxService - Stefan starting jukebox for "Mix\3-Kygo Mix 2017 _ Indulge In Summer Mix - Best Of Tropical Deep House Music Chill Out Mix.mp3"


What am I doing wrong con sb help me?

Thanks,

Stefan
AgentBignose
 
Posts: 5
Joined: Wed Jun 18, 2014 6:50 am

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 18 guests