Ticket #330 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

Changing default sink/source doesn't affect streams already stored in volume-restore.table

Reported by: isaks Owned by: lennart
Milestone: Component: pavucontrol
Keywords: Cc:

Description

Some background to the problem:

I've been using a PCI sound card for ages, but today I went out and bought a USB sound card to be able to control which sound goes where by using software (i.e. Pulse Audio). I want this because I want Banshee to output to my stereo, skype to the headphones and everything else to the desktop speakers.

(The USB soundcard was instantly detected by the running pulseaudio process when I plugged it in - great work there guys!!!)

I now configure pulse to use the USB card as default (through pavucontrol) and I therefore expect all future sound to go through the desktop speakers. This is not what happens though, since most of my sound generating applications are already in volume-restore.table, pulse will keep them on the PCI device sink.

After I removed ~/.pulse everything worked as expected. But it took some digging before I found that this was the cause of the problem...

Proposed solutions (I've no idea which, if any, are doable though):

  1. Move all entries in the volume-restore.table to use the new default device.
  2. Same as 1) above, but prompt the user before.
  3. Move all entries which hasn't been specifically configured by the user to use a specific output device to the new default device. This obviously requires that the file contains this information.

I'm using Ubuntu Hardy 8.04, which comes with version 0.9.10-1ubuntu1.

Change History

Changed 4 years ago by coling

See #328 which basically talks about the same things.

I agree that the volume restore table should probably have a concept of "default" rather than just named devices, but not sure how to do that.

I also think that most of these usability issues can be solved by good GUIs and notification which I've asked about on the PA mailing list just 10 minutes ago!

Changed 3 years ago by MartijnB

I'm sorry to reply 9 months after date, but ~/.pulse/volume-restore.table does not seem to be present on my system, so I can't delete it.

I'm using Ubuntu 9.04 and Pulseaudio 0.9.14.0.

martijn@mekkie:~/.pulse$ find -L . . ./127a801c8fc87ce542d6b9db49f0d6e9:stream-volumes.x86_64-pc-linux-gnu.gdbm ./127a801c8fc87ce542d6b9db49f0d6e9:runtime ./127a801c8fc87ce542d6b9db49f0d6e9:runtime/native ./127a801c8fc87ce542d6b9db49f0d6e9:runtime/pid ./127a801c8fc87ce542d6b9db49f0d6e9:runtime/cli ./127a801c8fc87ce542d6b9db49f0d6e9:default-source ./127a801c8fc87ce542d6b9db49f0d6e9:default-sink ./127a801c8fc87ce542d6b9db49f0d6e9:device-volumes.x86_64-pc-linux-gnu.gdbm

Any idea?

Changed 3 years ago by lennart

volume-restore.table has been replaced by a proper db, in your case

./127a801c8fc87ce542d6b9db49f0d6e9:device-volumes.x86_64-pc-linux-gnu.gdbm

Changed 3 years ago by lennart

  • status changed from new to closed
  • resolution set to fixed

I think this is mostly obsolete now, since g-v-c properly updates the db when making a different device default.

Note: See TracTickets for help on using tickets.