|
2010-06-15
, 16:40
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#32
|
Did you manage to see This??
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:
The self.pa_context_p would be a proper type to what the set_properties needs? Is this not the case?Code:self.pa_proplist_p = pa_proplist_new() self.set_proplist({ "window.name": self.client_name, "media.name": self.client_name, "application.name": self.client_name }) #self.pa_context_p = pa_context_new_with_proplist( # self.pa_mainloop_api_p, # self.client_name) self.pa_context_p = pa_context_new_with_proplist( self.pa_mainloop_api_p, self.client_name, self.pa_proplist_p)
import ctypes import libpulse_mainloop_glib gobject_lib = CDLL("libgobject-2.0.so.0") self.pulsesink = gst.element_factory_make("pulsesink", "someshit") self.player = gst.element_factory_make("playbin2", "player") proplist = libpulse_mainloop_glib.pa_proplist_new() libpulse_mainloop_glib.pa_proplist_sets (proplist, "event.id", "ringtone-preview") gobject_lib.g_object_set(ctypes.c_void_p(ctypes.hash(self.pulsesink)), "proplist", proplist, None) self.player.set_property("audio-sink", self.pulsesink)
The Following 2 Users Say Thank You to qwerty12 For This Useful Post: | ||
|
2010-06-15
, 17:15
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#33
|
|
2010-06-15
, 17:17
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#34
|
Im getting an AttributeError "module" object has no attribute "hash"
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
|
2010-06-15
, 17:21
|
|
Posts: 1,559 |
Thanked: 1,786 times |
Joined on Oct 2009
@ Boston
|
#35
|
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.
The Following 2 Users Say Thank You to Flandry For This Useful Post: | ||
|
2010-06-15
, 17:23
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#36
|
Sorry, that was a quick rip - look at my attachment here: https://bugs.maemo.org/show_bug.cgi?id=6694#c35
Oh, I forgot to use the pa_proplist_free function that I defined
Please do so after calling g_object_set
The Following User Says Thank You to fatalsaint For This Useful Post: | ||
|
2010-06-15
, 22:37
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#37
|
#**** to appease Maemo's stupid-*** Policy system added by Faheem Pervez
The Following User Says Thank You to fatalsaint For This Useful Post: | ||
|
2010-06-15
, 23:25
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#38
|
Oh, I forgot to use the pa_proplist_free function that I defined
Please do so after calling g_object_set
|
2010-06-15
, 23:44
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#39
|
The Following 3 Users Say Thank You to qwerty12 For This Useful Post: | ||
|
2010-06-15
, 23:56
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#40
|
The Following 2 Users Say Thank You to fatalsaint For This Useful Post: | ||
N900 as a Drive Letter in Windows, FULL Root access!!
Maemo! There's a BUG for that!
Cutomize Maemo!
Noobies - Noobies 2 - Maemo 5 - 101
Maemo FAQ