Reply
Thread Tools Search this Thread
Posts: 1,590 | Thanked: 6,087 times | Joined on May 2010
#911
I created new example daemon which will pause MAFW when pulseaudio master device changes. It listen for pulseaudio events and when special nokia module change routing (from bluetooth to internal board or reverse) daemon will send dbus signal to MAFW to pause playing. This daemon should have smaller delay in pausing MAFW as headphoned or my in-build implementation in OMP, because it immediately pause MAFW (not wait until bluez daemon tell us that headset is really disconnected)

Source code: http://atrey.karlin.mff.cuni.cz/~pali/autopause.c
Armel binary: http://atrey.karlin.mff.cuni.cz/~pali/autopause

Please test it if this daemon is better when headphoned (and my in-build implementation in OMP) for bluetooth headsets. And if yes I will include this pulseaudio implementation into OMP.

Note: do not forget to kill headphoned daemon and turn off in-build implementation :-)
 

The Following 8 Users Say Thank You to pali For This Useful Post:
Estel's Avatar
Posts: 3,842 | Thanked: 5,617 times | Joined on Mar 2011
#912
Originally Posted by pali View Post
I created new example daemon which will pause MAFW when pulseaudio master device changes. It listen for pulseaudio events and when special nokia module change routing (from bluetooth to internal board or reverse)
Is there any chance, that similar approach could be used to handle routing of sound to external DAC (USB soundcard), as per:
http://talk.maemo.org/showthread.php?t=83270
...?
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!

Last edited by Estel; 04-05-2012 at 12:43 PM.
 
Posts: 1,590 | Thanked: 6,087 times | Joined on May 2010
#913
Originally Posted by Estel View Post
Is there any chance, that similar approach could be used to handle routing of sound to external DAC (USB soundcard), as per:
http://talk.maemo.org/showthread.php?t=83270
...?
mediaplayer has nothing with playing playing is done in mafw and mafw using gstreamer and gstreamer using pulseaudio for playing sound.

So you need to patch pulseaudio/alsa or config files for alsaped for routing sound to other sound card (e.g. your usb).
 

The Following 2 Users Say Thank You to pali For This Useful Post:
Posts: 1,590 | Thanked: 6,087 times | Joined on May 2010
#914
Originally Posted by pali View Post
Now it is implemented
Git repository: https://gitorious.org/~pali/qt-media...li-mediaplayer

Due to speed of Qt and QtDBus is autopause delayed (1-3s) when bluetooth headset disconnected. Autopause when disconnected wired headset seems working realime. I added code (in last commit) to monitor also GPIO jack state (state is immedialey false when nothing is connected to jack). Seems that this fixed delay problem for wired headset. But I have no idea how to speed up bluetooth disconnect event (bluez daemon dbus signal is delayed and also qt signal/slots are not realtime).

So at least on my n900 disconnecting wired headset autopause player and nothing is heard from speakers.
@gidzzz: Merge request is created: https://gitorious.org/qt-mediaplayer...rge_requests/8
 

The Following 2 Users Say Thank You to pali For This Useful Post:
Posts: 53 | Thanked: 70 times | Joined on Jan 2012
#915
Media player started running really really slow about two weeks ago, and became generally irresponsive.

I heard about OMP yesterday, downloaded it, and it works fine! It already has all the features I use, so I just got rid of the old MP (I prefer this one specially since it's also FLOSS).

Great work guy! It's just perfect! I hope this makes it to CSSU some day!
 

The Following 2 Users Say Thank You to hobarrera For This Useful Post:
Posts: 7 | Thanked: 1 time | Joined on Feb 2012
#916
The best player for the n900! Finally we can share music via Bluetooth :-). I think if you do better supports the display of music lyrics in languages ​​other than English, including an automatic online search for album covers and the ability to search musics within the list itself that is playing without having to go back to the main list.
Would be perfection made music, I hope you can include these features
 
Posts: 1,765 | Thanked: 1,878 times | Joined on May 2011 @ Poland
#917
Originally Posted by oscarcirihillo View Post
The best player for the n900! Finally we can share music via Bluetooth :-). I think if you do better supports the display of music lyrics in languages ​​other than English, including an automatic online search for album covers and the ability to search musics within the list itself that is playing without having to go back to the main list.
Would be perfection made music, I hope you can include these features
U can download covers with mussorgsky, im planning an open src replacement for easy cd da extractor, but itll take some time 'til it's finished

apart from this i found a bug in omp.
after i edit lyrics in omp there are 2 problems: the screen turns itself on after a while aftet becoming locked and theres no kbd focus in other apps such as xterm or microb browser. you need 2 close omp to regain kbd focus
__________________
MeeCoLay: run MeeGo Harmattan apps on Fremantle
PowEdit: manage power key menu entries
User Agent Tool - change Maemo Browser's user agent
MaeLyrica - lyrics download client

If you want to support my work, you can DONATE

You're encouraged to donate at least a couple of euros - otherwise PayPal takes almost everything as a fee.

If you would like to donate in other currency or can't donate but would like to support me, please contact me.
 

The Following User Says Thank You to marmistrz For This Useful Post:
Posts: 1,590 | Thanked: 6,087 times | Joined on May 2010
#918
Originally Posted by pali View Post
I created new example daemon which will pause MAFW when pulseaudio master device changes. It listen for pulseaudio events and when special nokia module change routing (from bluetooth to internal board or reverse) daemon will send dbus signal to MAFW to pause playing. This daemon should have smaller delay in pausing MAFW as headphoned or my in-build implementation in OMP, because it immediately pause MAFW (not wait until bluez daemon tell us that headset is really disconnected)

Source code: http://atrey.karlin.mff.cuni.cz/~pali/autopause.c
Armel binary: http://atrey.karlin.mff.cuni.cz/~pali/autopause

Please test it if this daemon is better when headphoned (and my in-build implementation in OMP) for bluetooth headsets. And if yes I will include this pulseaudio implementation into OMP.

Note: do not forget to kill headphoned daemon and turn off in-build implementation :-)


The Following 7 Users Say Thank You to pali For This Useful Post:
Estel, HELLASISGREECE, kent_autistic, sirpaul, Sourav.dubey, strange1712, vi_
Who tested my new autopause implementation for bluetooth headsets? I'd like to know if this implementation is better or not.
 

The Following 2 Users Say Thank You to pali For This Useful Post:
Estel's Avatar
Posts: 3,842 | Thanked: 5,617 times | Joined on Mar 2011
#919
Would love to, but I don't have bluetooth headset (yet) and I can't force my notebook bluetooth module to appear as A2DP device to N900. So, You must count on others here

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
Posts: 1,590 | Thanked: 6,087 times | Joined on May 2010
#920
Originally Posted by Estel View Post
Would love to, but I don't have bluetooth headset (yet) and I can't force my notebook bluetooth module to appear as A2DP device to N900. So, You must count on others here

/Estel
if you have notebook with bluetooth module and some modern linux distribution with bluez 4 and pulseaudio, I can help you to configure notebook as A2DP headphones. write me email for more info.
 

The Following 2 Users Say Thank You to pali For This Useful Post:
Reply

Tags
mag 4 prez, media, open source, player, portrait mode, re-write, remake

Thread Tools Search this Thread
Search this Thread:

Advanced Search

 
Forum Jump


All times are GMT -4. The time now is 05:02 AM.