![]() |
2010-04-23
, 16:47
|
|
Posts: 516 |
Thanked: 643 times |
Joined on Oct 2009
@ Denmark/Poland
|
#2
|
![]() |
2010-04-23
, 17:00
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#3
|
@mikec, what you can try to do is to have MediaObject with signals connected like finished->play or maybe to of those Objects and use aboutToFinish to prepare second object to play.
[edit] although is there any particular reason you need to use phonon instead of gstreamer for this task?
self.m_media1 = Phonon.MediaObject(self) audioOutput = Phonon.AudioOutput(Phonon.MusicCategory, self) Phonon.createPath(self.m_media1, audioOutput) self.m_media1.setCurrentSource(Phonon.MediaSource("stylo_smpl/c#4v.wav")) self.connect(self.m_media1, SIGNAL("aboutToFinish()"), self.enqueFile) self.m_media1.setPrefinishMark(0) self.m_media1.setTransitionTime(0) def enqueFile(self): self.m_media1.enqueue(Phonon.MediaSource("stylo_smpl/c#4v.wav"))
![]() |
2010-04-23
, 17:15
|
Posts: 3,319 |
Thanked: 5,610 times |
Joined on Aug 2008
@ Finland
|
#4
|
![]() |
2010-04-23
, 17:20
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#5
|
![]() |
2010-04-23
, 17:31
|
Posts: 3,319 |
Thanked: 5,610 times |
Joined on Aug 2008
@ Finland
|
#6
|
![]() |
2010-04-23
, 17:36
|
Posts: 3,319 |
Thanked: 5,610 times |
Joined on Aug 2008
@ Finland
|
#7
|
[edit] although is there any particular reason you need to use phonon instead of gstreamer for this task?
![]() |
2010-04-23
, 17:42
|
|
Posts: 534 |
Thanked: 723 times |
Joined on Oct 2009
|
#8
|
![]() |
2010-04-23
, 17:59
|
Posts: 291 |
Thanked: 59 times |
Joined on Mar 2010
@ Manchester, UK
|
#9
|
![]() |
2010-04-23
, 19:08
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#10
|
prefinishMark set to 0 disables it, and 0 is the default, so that line would be unnecessary. Maybe that has some unintended side-effect?
I'm trying to play a loop of audio witch is 150ms in length over and over again. The idea was to set up a queue of samples, and keep adding to the queue every time we got a signal from the prefinishmark. but there seems to be a big gap still between samples playing.
N900_Email_Options Wiki Page