![]() |
Re: [application] pyRadio (Pandora)
Quote:
PulseAudio doesn't seem to have Python bindings but http://gnome-pulse-applet.googlecode...inloop_glib.py seems to wrap it. I'll try it out. |
Re: [application] pyRadio (Pandora)
This workaround works.
Setting the application name to FMRadio. I really don't like how ugly this is to work around this problem. Is there a "proper" way to do this? I still would like any information on setting the pulseaudio proplist like above.. it seems a better solution than "mimicking" another application that has a proper police. Is the "proper" way to modify the xpolicy file and create my own block for my own app? Meh. Ugly. But, my phone is currently playing Pandora while in Silent Mode. I'm not home, or I'd build a package and submit it.. I'll have something up tonight though. |
Re: [application] pyRadio (Pandora)
Quote:
If I could figure out just exactly the necessary CDLL calls to create and edit the proplist..specifically, working with these areas: Code:
pa_context_new_with_proplist = pulse_lib.pa_context_new_with_proplist |
Re: [application] pyRadio (Pandora)
Of course.. then the question becomes:
Is pretending my app is a ringtone-preview any better than just pretending my app is FMRadio? :rolleyes: |
Re: [application] pyRadio (Pandora)
Quote:
|
Re: [application] pyRadio (Pandora)
Quote:
It's a mess. The alternative is I download 2 additional .py's, distribute them with my package, and import them in my radio app. This is an awful low of work just to get around a stupid "Silent" profile policy. I mean.. I do have to agree that I find it a bit silly that people expect sound to play when the phone is on "Silent"... to me "Silent" means just that.. Silence. I find it odd that even the built-in player gets around the Silent profile. But I've seen this crop up in several threads .. and has been mentioned to me often so figured WTH.. since you and Flandry found me work arounds I'll go ahead and implement them. Especially since, this appears to be the only way we can avoid having the problem of pyRadio being unlistenable if you're constantly texting someone because the system sounds override gstreamer (instead of just playing over background audio it actually takes control, stops your playing, and plays the system sound. Ridiculous again. If Linux was still stuck in the days of only playing one-sound at a time we'd have gotten no where..) Now we can just set the phone to the Not-Really-But-Badly-Named-And-Incorrect "Silent" profile. Oh well.. I guess I'm just venting some frustration here. Specifically tho: Being in the radio category, what privileges exactly am I missing? Cause I'll be honest.. adding 1 line and no additional includes to work around the simple Silent problem is a lot more appealing to me than bringing along two full modules that envelope the entire pulseaudio wrappings; and/or writing my own small piece of code to work just with proplists. The work or bulk outweigh the benefits I'm thinking. However, will being in the 'player' category prevent the audio hiccup when the screen dims to black as well? Because currently as a 'radio' app, I still suffer from that problem. |
Re: [application] pyRadio (Pandora)
Quote:
If you don't want to go the ctypes route, then editing xpolicy.conf is the way to go. I can't figure out how to pass the proplist in pulsesink's set_property function as it wants a GParamSpecPointer. How the **** am I meant to provide that? That bit of C I posted works fine because it expects a pointer and recieves one. Man, no wonder people prefer PyQt to PyGTK... |
Re: [application] pyRadio (Pandora)
Thanx! This app is killer. The buffering fixed Pianobar for me!
|
Re: [application] pyRadio (Pandora)
Quote:
I was using that in-tandem with the lib_pulseaudio source to work with it. I would expect (though haven't tried it) that if properly imported: Code:
self.pa_proplist_p = pa_proplist_new() |
Re: [application] pyRadio (Pandora)
Quote:
|
All times are GMT. The time now is 21:19. |
vBulletin® Version 3.8.8