Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

Re: [mythtv-commits] Ticket #4222: Update MythMusic to continue playing in the background after exiting it.

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


mythtv at dsl

Dec 2, 2007, 7:06 AM

Post #1 of 8 (961 views)
Permalink
Re: [mythtv-commits] Ticket #4222: Update MythMusic to continue playing in the background after exiting it.

Mark Buechler wrote:
> Hi
>
> On 11/29/07, *MythTV* <mythtv [at] cvs
> <mailto:mythtv [at] cvs>> wrote:
>
> #4222: Update MythMusic to continue playing in the background
> after exiting it.
> -------------------------+--------------------------------------------------
> Reporter: paulh | Owner: paulh
> Type: enhancement | Status: new
> Priority: minor | Milestone: 0.21
> Component: mythmusic | Version: head
> Severity: medium | Resolution:
> Mlocked: 0 |
> -------------------------+--------------------------------------------------
>
>
> Comment(by Bill <cizek [at] rcn <mailto:cizek [at] rcn>>):
>
> Really sweet patch, Paul.
>
> I've attached a few patches I made to my system on top of v3:
>
> 072-musichide.patch - stop background music playback when I switch to
> watching Live or recorded TV.
>
>
> I rather like the idea of being able to watch TV while listening to
> music.
>

The initial version wont allow you to do that. It will just stop the
music player when playback starts and resume again when it stops. I did
do a little testing to see what would happen if I left the music playing
and started a recording playing and I ended up with both playing at the
same time. Changing the volume or muting TV also changed the music audio
though. Comment 12 from Matt on ticket #4222 seems to suggest that some
people will have problems if the music player is left running when
livetv/recording playback is started (probably depends on what sound
system is being used) so for now the music player will be stopped and
the audio output is released so as to not cause any conflicts.

Paul H.

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


stuart at tase

Dec 2, 2007, 8:19 AM

Post #2 of 8 (908 views)
Permalink
Re: [mythtv-commits] Ticket #4222: Update MythMusic to continue playing in the background after exiting it. [In reply to]

On Sunday 02 December 2007 15:06:30 Paul Harrison wrote:
> The initial version wont allow you to do that. It will just stop the
> music player when playback starts and resume again when it stops.

Any thoughts on restoring the music volume to the level it was at before video
playback started? I'm probably not the only one who finds that the base level
for my music is a lot higher than my recordings, so I tend to have the volume
higher for TV. If I exit from a recording the last thing I want is to be
blasted by music at full volume.

Another approach would be to offer the option to adjust the relative volumes
for music and TV. A year ago I wrote a patch to do exactly that, but as I
didn't get it working exactly as I wanted, it was never committed.
--
Stuart Morgan
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mythtv at dsl

Dec 2, 2007, 9:18 AM

Post #3 of 8 (911 views)
Permalink
Re: [mythtv-commits] Ticket #4222: Update MythMusic to continue playing in the background after exiting it. [In reply to]

Stuart Morgan wrote:
> On Sunday 02 December 2007 15:06:30 Paul Harrison wrote:
>
>> The initial version wont allow you to do that. It will just stop the
>> music player when playback starts and resume again when it stops.
>>
>
> Any thoughts on restoring the music volume to the level it was at before video
> playback started? I'm probably not the only one who finds that the base level
> for my music is a lot higher than my recordings, so I tend to have the volume
> higher for TV. If I exit from a recording the last thing I want is to be
> blasted by music at full volume.
>
> Another approach would be to offer the option to adjust the relative volumes
> for music and TV. A year ago I wrote a patch to do exactly that, but as I
> didn't get it working exactly as I wanted, it was never committed.
>
I have the same problem with music playback being louder than TV playback.

How about both the music player and tv player both save the volume in
the settings table on exit and restore there respective volume levels
when playback starts? The MythMusic side would be very easy - don't know
enough about the tv playback side to know how easy that would be.

Actually just remembered seeing an AudioOutputSource enum in the audio
output classes so since it knows what the source is maybe the logic to
save/restore the volume levels could be put in there?

Paul H.

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


ijr at case

Dec 2, 2007, 9:47 AM

Post #4 of 8 (907 views)
Permalink
Re: [mythtv-commits] Ticket #4222: Update MythMusic to continue playing in the background after exiting it. [In reply to]

> Paul Harrison wrote:
> > Mark Buechler wrote:
> > I rather like the idea of being able to watch TV while listening to
> > music.
>
> The initial version wont allow you to do that. It will just stop the
> music player when playback starts and resume again when it stops. I did
> do a little testing to see what would happen if I left the music playing
> and started a recording playing and I ended up with both playing at the
> same time. Changing the volume or muting TV also changed the music audio
> though. Comment 12 from Matt on ticket #4222 seems to suggest that some
> people will have problems if the music player is left running when
> livetv/recording playback is started (probably depends on what sound
> system is being used) so for now the music player will be stopped and
> the audio output is released so as to not cause any conflicts.

Having both play would depend on a combination of audio driver + card
capabilities. That's one of the reasons I never added UI sounds, too. We'd
need a software mixer in the audio output class/etc..

Nice patch, btw. =)

Isaac
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mythtv at colin

Dec 2, 2007, 1:34 PM

Post #5 of 8 (896 views)
Permalink
Re: [mythtv-commits] Ticket #4222: Update MythMusic to continue playing in the background after exiting it. [In reply to]

Isaac Richards wrote:
> Having both play would depend on a combination of audio driver + card
> capabilities. That's one of the reasons I never added UI sounds, too. We'd
> need a software mixer in the audio output class/etc..

Something like pulseaudio as an underlying layer would relegate this to
system setup rather than having to worry about it specifically in Myth,
tho' I guess that would only apply on linux.... (not sure how it would
work on windows and not aware of any pulse dev on OSX).

Col

--

+------------------------+
| Colin Guthrie |
+------------------------+
| myth(at)colin.guthr.ie |
| http://colin.guthr.ie/ |
+------------------------+
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


kormoc at gmail

Dec 2, 2007, 1:59 PM

Post #6 of 8 (912 views)
Permalink
Re: [mythtv-commits] Ticket #4222: Update MythMusic to continue playing in the background after exiting it. [In reply to]

On Dec 2, 2007 1:34 PM, Colin Guthrie <mythtv [at] colin> wrote:
> Something like pulseaudio as an underlying layer would relegate this to
> system setup rather than having to worry about it specifically in Myth,
> tho' I guess that would only apply on linux.... (not sure how it would
> work on windows and not aware of any pulse dev on OSX).

Personally, I think requring a specific sound server (or any sound
server) isn't something we should consider. I don't run any sound
servers, as my cards have hardware mixing, and there's no point in
running a sound server.

~Rob
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


schachte at csse

Dec 2, 2007, 7:16 PM

Post #7 of 8 (889 views)
Permalink
Re: [mythtv-commits] Ticket #4222: Update MythMusic to continue playing in the background after exiting it. [In reply to]

Paul Harrison wrote:
> Stuart Morgan wrote:
>> On Sunday 02 December 2007 15:06:30 Paul Harrison wrote:
>> Any thoughts on restoring the music volume to the level it was at before video
>> playback started? I'm probably not the only one who finds that the base level
>> for my music is a lot higher than my recordings,
>>
>> Another approach would be to offer the option to adjust the relative volumes
>> for music and TV. A year ago I wrote a patch to do exactly that, but as I
>> didn't get it working exactly as I wanted, it was never committed.
>
> How about both the music player and tv player both save the volume in
> the settings table on exit and restore there respective volume levels
> when playback starts?

Volume control does not do anything for many people with digital sound output
(myself included), so just saving and restoring volume controls won't work
for everyone. I'm not sure I understand Stuart's suggestion correctly, but
if it would work by scaling the sound amplitude values being sent to the
sound card (by different configurable values depending on whether from
MythMusic or Myth proper), rather than by adjusting the card's PCM or master
volume controls, it sounds like it would work for more (all?) Myth users
(though at a slight performance cost).

--
Peter Schachte Q: How many Microsoft programmers does it take
schachte [at] cs to change a light globe? A: None. They declare
www.cs.mu.oz.au/~schachte/ darkness to be an industry standard.
Phone: +61 3 8344 1338
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mythtv at colin

Dec 4, 2007, 2:57 PM

Post #8 of 8 (869 views)
Permalink
Re: [mythtv-commits] Ticket #4222: Update MythMusic to continue playing in the background after exiting it. [In reply to]

Rob Smith wrote:
> On Dec 2, 2007 1:34 PM, Colin Guthrie <mythtv [at] colin> wrote:
>> Something like pulseaudio as an underlying layer would relegate this to
>> system setup rather than having to worry about it specifically in Myth,
>> tho' I guess that would only apply on linux.... (not sure how it would
>> work on windows and not aware of any pulse dev on OSX).
>
> Personally, I think requring a specific sound server (or any sound
> server) isn't something we should consider. I don't run any sound
> servers, as my cards have hardware mixing, and there's no point in
> running a sound server.

Without going into it on this list, there are many advantages to using
e.g. pulseaudio underneath. I have my frontend connected up to my
amp+speakers. If I'm on my laptop and I want to play tunes in e.g.
amarok or something on my hifi, rather than fiddle about with the AUX
cable I can just tunnel my laptop's pulseserver to my frontend's pulse
server and switch my amarok stream to the frontends sound output! You
don't even need to stop playing, it can all switch when "live".

Most of this happens automagically with zeroconf and a (admittedly not
perfect) UI.

Another use would be if you want to output to e.g. a PCI sound card
*and* a USB sound system simultaneously.

So while hardware mixing is great, there are still some cases where you
may want to run a sound server.

Food for thought, even if it really is off-topic for this list.

Col

--

+------------------------+
| Colin Guthrie |
+------------------------+
| myth(at)colin.guthr.ie |
| http://colin.guthr.ie/ |
+------------------------+
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.