| View previous topic :: View next topic |
| Author |
Message |
Big Jim Slade Apprentice


Joined: 04 May 2005 Posts: 197 Location: Washington State
|
Posted: Sun May 29, 2005 8:50 am Post subject: BMP & crossfade "couldn't open audio" [Solved] |
|
|
I'd like to be able to use the crossfade plugin for beep-media-player, but when I select it as the output instead of alsa and then try to play a track, bmp says it "Couldn't open audio" and suggests I check sound card settings and what not. I went through all the plugin settings a couple times and couldn't find anything that appeared to make a difference, and it plays fine with alsa selected as output rather than crossfade.
Anybody had this problem and/or got any ideas on how to correct it?
On a related note... I switched over to BMP because xmms would lock up trying to play an http stream (from a jinzora server). Any thoughts on that one?
Last edited by Big Jim Slade on Mon May 30, 2005 11:28 am; edited 1 time in total |
|
| Back to top |
|
 |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Sun May 29, 2005 12:58 pm Post subject: |
|
|
I've never actually bothered with the crossfade plugin before, but I tried it just now and recieved the exact same error.
Just for comparison, the only use flags I have set with bmp are alsa, mmx, mp3 and nls.
I'm not usng esound, dmix or anything similar, and I have no oss emulation.
I'll tinker around with the settings and see if I can get rid of the error. _________________ "You have to invite me in" |
|
| Back to top |
|
 |
Big Jim Slade Apprentice


Joined: 04 May 2005 Posts: 197 Location: Washington State
|
Posted: Sun May 29, 2005 7:34 pm Post subject: |
|
|
Checked my use flags... alsa, mp3, mmx, nls and oggvorbis (that being the only difference). Similar setup here: not using esound or any of that either.
One other thing that might be of importance -- I do not have alsa compiled into the kernel, but have elected to use the suggested alsa-driver package. Version 1.0.8 of alsa-lib, alsa-utils, alsa-driver and alsa-header. In case that helps at all |
|
| Back to top |
|
 |
gwolf Guru


Joined: 05 May 2005 Posts: 374 Location: Estonia
|
Posted: Sun May 29, 2005 8:34 pm Post subject: |
|
|
Well, my BMP is working fine with crossfade and alsa output plugin. Here are my settings:
| Code: |
# emerge -pv beep-media-player
[ebuild U ] media-sound/beep-media-player-0.9.7-r6 [0.9.7-r5] +alsa -debug +esd -gnome +mmx +mp3 +nls +oggvorbis -old-eq +oss 0 kB
# eix alsa-driver
* media-sound/alsa-driver
Available versions: 1.0.3 1.0.8 ~1.0.9_rc3 ~1.0.9
Installed: 1.0.9
|
And I don't have esound daemon running, only alsasound. _________________ War is peace. Freedom is slavery. Ketchup is a vegetable. |
|
| Back to top |
|
 |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Mon May 30, 2005 12:04 am Post subject: |
|
|
I've been messing around with this, and I got it too work by just messing with all the settings, but not knowing what actually sorted it out I deleted ~/.bmp/config and started again.
Eventually I got it working again, closed bmp and restarted, and it was still working, but I still have no idea what actually got it too work.
I tried again and haven't been able to get it too work yet.
Really wish I had backed up my config from when I had it working rather than just deleting it.
I'm using the kernel's alsa drivers, as modules, and version 1.0.9-rc2 of alsa-lib and alsa-headers.
gwolf;
Are you sure you esd isn't running while playing? I thought it was started by automatically supporting apps.
Anyway, I think it's more than likely an oss issue. Both crossfade and the alsa output plugin were ported from xmms, and as it states in the crossfade info dialog, "based on the original OSS Output Plugin", and the main difference between gwolf's setup and Big Jim Slade's & mine seems to be oss support.
Whatever. At least it can work. It just prefers not too.  _________________ "You have to invite me in" |
|
| Back to top |
|
 |
Big Jim Slade Apprentice


Joined: 04 May 2005 Posts: 197 Location: Washington State
|
Posted: Mon May 30, 2005 7:38 am Post subject: |
|
|
When you were playing around with settings, I am assuming you played around with settings within bmp and did not re-emerge anything with oss support. Is that right?
I'm going to monkey around with settings one by one I think and see what happens, but I'll hold off on a recompile for the time being... we'll see what happens.
Thanks for your troubleshooting efforts so far... I've found the Gentoo community and forums to be a part of why I like Gentoo over other distros because of users like yourselves. Thanks again |
|
| Back to top |
|
 |
gwolf Guru


Joined: 05 May 2005 Posts: 374 Location: Estonia
|
Posted: Mon May 30, 2005 7:53 am Post subject: |
|
|
| Hopeless wrote: |
gwolf;
Are you sure you esd isn't running while playing? I thought it was started by automatically supporting apps.
|
I am, since esound is not even emerged.
What Output plugin do you use under Crossfading plugin preferences? Maybe changing it will help. _________________ War is peace. Freedom is slavery. Ketchup is a vegetable. |
|
| Back to top |
|
 |
Big Jim Slade Apprentice


Joined: 04 May 2005 Posts: 197 Location: Washington State
|
Posted: Mon May 30, 2005 8:27 am Post subject: |
|
|
Okay, here's what I've discovered.
First, the output plugin I'm using is Alsa 0.9.7 output plugin, and here's where the problem appears to exist.
Messed around with settings by toggling one thing, trying it and then toggling it back to its original state when it didn't fix the problem. Doing this, I discovered that checking "Use software volume control" under the configuration for the output plugin (Alsa 0.9.7 output plugin) Mixer settings now allows the crossfade plugin to work like it should and without problem.
So, apparently... check "Use software volume control" and crossfade plugin works.
This seems a little weird, since the Alsa output works fine without that check normally, although I think I get the connection. But, do anybody know if there are any undesirable side effects to using software volume control over the default hardware? |
|
| Back to top |
|
 |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Mon May 30, 2005 9:46 am Post subject: |
|
|
| Big Jim Slade wrote: | | When you were playing around with settings, I am assuming you played around with settings within bmp and did not re-emerge anything with oss support. Is that right? |
No, I didn't try recompiling. In order to add oss support, I'd have to go messing with my kernel. Don't particularly feel like doing that right now.
| gwolf wrote: | | What Output plugin do you use under Crossfading plugin preferences? Maybe changing it will help. |
I'm using theAlsa 0.9.7 output plugin, same as Big Jim Slade. It's the only output plugin I have available (apart from crossfade itself).
| Big Jim Slade wrote: | | But, do anybody know if there are any undesirable side effects to using software volume control over the default hardware? |
I'd imagine the main difference would be the same as not using direct rendering with xorg; your cpu has to do some of the work that otherwise your graphics (or in this case sound) card could handle. I doubt it's a big deal. If you look around the forums, a lot af people can't use hardware mixing on their card anyway, and have to use dmix are something similar to do software mixing.
| Big Jim Slade wrote: | So, apparently... check "Use software volume control" and crossfade plugin works.
|
That's the last thing I did to get it working one of the times, but toggling it on and off since hasn't helped me to get it back.
Thing is, after I got it working, I was able to switch back to hardware mixing and it still worked.
Could you do me a favour a post your ~/.bmp/config file?
I'm sure whatever the problem is is just caused by settig in this file, and I'd like to see if simply using your working config will get mine working again, and f I can compare it to a none working config to see if I can figure out which setting it is. _________________ "You have to invite me in" |
|
| Back to top |
|
 |
Big Jim Slade Apprentice


Joined: 04 May 2005 Posts: 197 Location: Washington State
|
Posted: Mon May 30, 2005 9:58 am Post subject: |
|
|
Here's a working bmp config file:
| Code: | [ALSA]
buffer_time=500
period_time=50
mmap=TRUE
pcm_device=default
mixer_card=0
mixer_device=PCM
soft_volume=TRUE
volume_left=100
volume_right=100
[beep]
allow_multiple_instances=FALSE
use_realtime=FALSE
always_show_cb=TRUE
convert_underscore=TRUE
convert_twenty=TRUE
show_numbers_in_pl=TRUE
snap_windows=TRUE
save_window_positions=TRUE
dim_titlebar=TRUE
get_info_on_load=FALSE
get_info_on_demand=TRUE
no_playlist_advance=FALSE
sort_jump_to_file=FALSE
use_pl_metadata=TRUE
warn_about_unplayables=TRUE
use_backslash_as_dir_delimiter=FALSE
player_shaded=FALSE
player_visible=TRUE
shuffle=FALSE
repeat=FALSE
autoscroll_songname=TRUE
playlist_shaded=FALSE
playlist_visible=FALSE
playlist_transparent=FALSE
use_fontsets=FALSE
mainwin_use_xfont=FALSE
equalizer_visible=FALSE
equalizer_active=FALSE
equalizer_shaded=FALSE
equalizer_autoload=FALSE
use_eplugins=FALSE
always_on_top=FALSE
sticky=FALSE
random_skin_on_play=FALSE
pause_between_songs=FALSE
show_wm_decorations=FALSE
eq_extra_filtering=TRUE
analyzer_peaks=TRUE
custom_cursors=TRUE
close_dialog_open=TRUE
close_dialog_add=TRUE
player_x=20
player_y=36
timer_mode=0
vis_type=0
analyzer_mode=0
analyzer_type=1
scope_mode=0
vu_mode=1
vis_refresh_rate=0
analyzer_falloff=3
peaks_falloff=1
playlist_x=295
playlist_y=36
playlist_width=275
playlist_height=232
playlist_position=14
equalizer_x=20
equalizer_y=136
snap_distance=10
pause_between_songs_time=2
mouse_wheel_change=8
scroll_pl_by=3
titlestring_preset=4
playlist_font=Sans Bold 10
mainwin_font=Sans Bold 9
eqpreset_default_file=dir_default.preset
eqpreset_extension=preset
generic_title_format=%t - %p
equalizer_preamp=0
equalizer_band0=0
equalizer_band1=0
equalizer_band2=0
equalizer_band3=0
equalizer_band4=0
equalizer_band5=0
equalizer_band6=0
equalizer_band7=0
equalizer_band8=0
equalizer_band9=0
skin=/usr/share/bmp/Skins/Default
output_plugin=/usr/lib/bmp/Output/libALSA.so
url_history_length=0
[Crossfade]
output_method=1
audio_device=0
use_alt_audio_device=FALSE
alt_audio_device=/dev/dsp
mixer_device=0
output_plugin=libALSA.so
op_config_string=libdisk_writer.so
buffer_size=10000
sync_size=250
preload_size=0
songchange_timeout=500
enable_mixer=FALSE
mixer_reverse=FALSE
enable_debug=FALSE
enable_monitor=FALSE
oss_buffer_size=0
oss_preload_size=250
oss_mixer_use_master=FALSE
gap_lead_enable=TRUE
gap_lead_len_ms=500
gap_lead_level=512
gap_trail_enable=TRUE
gap_trail_len_ms=500
gap_trail_level=512
gap_trail_locked=1
buffer_size_auto=TRUE
album_detection=TRUE
http_workaround=FALSE
enable_op_max_used=FALSE
op_max_used_ms=250
effect_plugin=libnormvol.so
effect_enable=FALSE
output_rate=44100
oss_maxbuf_enable=FALSE
use_alt_mixer_device=FALSE
oss_fragments=22
oss_fragment_size=12
output_keep_opened=FALSE
mixer_software=FALSE
mixer_vol_left=75
mixer_vol_right=75
no_xfade_if_same_file=TRUE
alt_mixer_device=/dev/mixer
gap_crossing=TRUE
output_quality=2
fc_xfade=5,2000,6000,1,4000,0,3,3,-6000,1,0,4000,33,0,0,0,0,0
fc_manual=4,2000,1000,1,500,0,3,3,-500,1,0,500,50,0,500,0,500,0
fc_album=2,0,0,0,0,0,0,0,0,0,0,1000,0,0,0,0,0,0
fc_start=6,0,0,0,0,0,0,0,0,0,0,100,0,0,0,0,0,0
fc_stop=7,0,0,0,100,0,0,0,500,0,0,0,0,0,0,0,0,0
fc_eop=7,0,0,0,100,0,0,0,500,0,0,0,0,0,0,0,0,0
fc_seek=4,0,50,0,0,0,0,0,0,0,0,1000,0,0,0,0,0,0
fc_pause=9,0,0,1,100,0,0,0,100,0,1,100,0,0,0,0,0,0 |
|
|
| Back to top |
|
 |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Mon May 30, 2005 10:27 am Post subject: |
|
|
| Big Jim Slade wrote: | | Here's a working bmp config file: |
That was quick! Thanks.
What was even faster was finding the source of this problem; Just taking a look at your config, I noticed output_plugin=libALSA.so, whereas in mine it was never changed from libOSS.so.
I deleted my old config and started bmp, configured everything other than crossfade the way I wanted, it played fine, so I quit.
Restarted, enabled crossfade, selected alsa, tried playing a song, same old problem. Quit.
Manually changed the value in the config, fired up bmp again, everything was fine. Played straight away with crossfade and hardware mixing.
So apparantly the problem is crossfade doesn't change the output_plugin value when you change from the default to alsa (told you it was oss related ).
Think I should file a bug report?
Anyway, thanks again for posting your config. I guess you can mark this as [SOLVED]. _________________ "You have to invite me in" |
|
| Back to top |
|
 |
Big Jim Slade Apprentice


Joined: 04 May 2005 Posts: 197 Location: Washington State
|
Posted: Mon May 30, 2005 11:27 am Post subject: |
|
|
So, does that mean that when the output_plugin variable is set to libOSS.so it'll play fine with crossfade and hardware mixing, and if it is set to libALSA.so is when it craps out?
(just set bmp back to hardware mixing...) Lo and behold, it's working now with hardware mixing. I turned software mixing on (in the previous post) which got it working, and now I turned it off and it is still working, so it would seem that by switching that then the output_plugin variable gets set, but not when you actually set the output plugin?
Yeah, that sounds like a bug to me... now I'll see if I'm smart enough to figure out how to mark this solved...
Thanks for your help |
|
| Back to top |
|
 |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Mon May 30, 2005 11:36 am Post subject: |
|
|
Glad I could help.
One point of note, though; it's when you try using the libALSA.so but the config file still refers to libOSS.so that the problem exists.
That's the bug; selecting the alsa output plugin should change the value to libALSA.so, but it dosen't.
Anyways, I'm off to file my first bug report.
Edit: bug filed; bugs.gentoo.org/show_bug.cgi?id=94491 _________________ "You have to invite me in" |
|
| Back to top |
|
 |
frenkel Veteran


Joined: 13 May 2003 Posts: 1034 Location: .nl
|
|
| Back to top |
|
 |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Mon May 30, 2005 5:36 pm Post subject: |
|
|
I searched for bmp and crossfade! I swear! #77415 wasn't there before!
My first bug report, and it's a bloody dupe .
Anyway, tried the patch and ebuild and it failed to compile, posted the error on the bugzilla page.
On a side note, I'll never again sit idly by while others complain about how long it takes the devs to respond to bugs.
Wasn't expecting a response for days, if ever. _________________ "You have to invite me in" |
|
| Back to top |
|
 |
frenkel Veteran


Joined: 13 May 2003 Posts: 1034 Location: .nl
|
Posted: Mon May 30, 2005 5:50 pm Post subject: |
|
|
I'm no official dev it just irritated me too
Fixed it now, should work also with gcc 3.4.x
https://bugs.gentoo.org/show_bug.cgi?id=77415
And btw, I think bugs can't be viewed when they are closed for a longtime, so the dupe was NOT your fault. |
|
| Back to top |
|
 |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Mon May 30, 2005 6:21 pm Post subject: |
|
|
Just compiled with the new patch and works perfectly.
Started bmp with no ~/.bmp/config, and everything worked as it should.
I only saw your new ebuild after getting the first one to work with the new patch. Is there any reason to emerge again?
Anyway, thanks. For the patch, ebuild and clearing me of ignorantly filing a dupe.  _________________ "You have to invite me in" |
|
| Back to top |
|
 |
frenkel Veteran


Joined: 13 May 2003 Posts: 1034 Location: .nl
|
Posted: Mon May 30, 2005 6:31 pm Post subject: |
|
|
Your welcome!
No, the new ebuild has just some other comment stuff, it won't change anything. Now the only thing WE need to do is wait till it hits the cvs  |
|
| Back to top |
|
 |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Mon May 30, 2005 6:43 pm Post subject: |
|
|
| Frenkel wrote: | Now the only thing WE need to do is wait till it hits the cvs  |
Ah. So this is the part that people complain about?  _________________ "You have to invite me in" |
|
| Back to top |
|
 |
frenkel Veteran


Joined: 13 May 2003 Posts: 1034 Location: .nl
|
Posted: Mon May 30, 2005 6:56 pm Post subject: |
|
|
| Hopeless wrote: | | Frenkel wrote: | Now the only thing WE need to do is wait till it hits the cvs  |
Ah. So this is the part that people complain about?  |
Indeed, but Tony Vroon is pretty fast I think (he's the assignee for this bug).
And hey, these people have a life and a job too... |
|
| Back to top |
|
 |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Mon May 30, 2005 7:00 pm Post subject: |
|
|
| Frenkel wrote: | | And hey, these people have a life and a job too... |
I know. That's why I said it.
Jealousy makes you do bad things. _________________ "You have to invite me in" |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|