Active Topics

 


Reply
Thread Tools
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#11
Originally Posted by attila77 View Post
I’m not sure if this works in the experimental packages you have, but I would try going QtMultimedia rather than phonon... Check this out:

http://www.riverbankcomputing.co.uk/...diooutput.html

EDIT: scratch that, I see that I did not build QtMultimedia for PR1.1, it will be there for PR1.2, though (not much of a consolation, I know).
just looked at QAudioOutput and that looks like whats is needed. Looks like another project shelved until PR1.2
__________________
N900_Email_Options Wiki Page
 
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#12
well, have moved to pygame for audio and we get nice low latency audio

Code:
FREQ = 18000   # play with this for best sound
BITSIZE = -16  # here unsigned 16 bit
CHANNELS = 2   # 1 is mono, 2 is stereo
BUFFER = 100 # audio buffer size, number of samples

self.mymixer=pg.mixer.init(FREQ, BITSIZE, CHANNELS, BUFFER)
# create a new Sound object from a file
self.sound1=pg.mixer.Sound("stylo_smpl/d3.wav")
self.sound2=pg.mixer.Sound("stylo_smpl/c4.wav")

    

    def on_pushButton_2_pressed(self):
         self.sound1.play(-1)
          
    def on_pushButton_2_released(self):
         self.sound1.stop()
__________________
N900_Email_Options Wiki Page
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:14.