| Reply | « Previous Thread | Next Thread » |
|
Hello,
I am writing an app for a school contest, its like a voip for s60. 1)I don't know exactly many things about multitreading but i would like to record and play at the same time. I read somewhere that i should use e32.ao_yeld() to do multitask but i think now is different because i am using 2 process that uses the same audio module. Do you think I can do it? 2)Which kind of operation should i do to play files in streaming? I read in another post that the streaming has the problem to do pauses when it's downloading new parts to play. Is it true? Thanks a lot Best regards |
| luke14free |
| View Public Profile |
| Find all posts by luke14free |
|
Full duplex audio or audio streaming isn't yet supported in PyS60.
|
|
Do you know when will it be released for pys60?(approx)
Haven't I got any other solution a part from full audio duplex (maybe an use in multi-threading of the half duplex...)? Is there any way to use (using swig) the c++ release(that arrived in 9/05 ) with pys60?Any forum champion could help me? It's for a non-profit porpouse! Post Scrittum:my c/c++ knowledge is limitated... Thanks Best Regards |
| luke14free |
| View Public Profile |
| Find all posts by luke14free |
|
Full duplex wont be suppoted but this goes fine!!...e32.ao_yield does miracles...
please post this example or something similar as an example of full duplex for pys60 Best Regards, luke14free Code:
import appuifw
import e32
import audio
filename1 = open('e:\\new.wav','w')
filename1.close()
filename = 'e:\\a.mp3'
S=audio.Sound.open('e:\\new.wav')
S.record()
print "Recording on!"
e32.ao_yield()
S2=audio.Sound.open(filename)
S2.play()
print 'Playing'
for i in range(0,100):#a little time before closing file(like 1 sec)
print i
S2.stop()
S2.close()
S.stop()
S.close()
print "Stopped"
|
| luke14free |
| View Public Profile |
| Find all posts by luke14free |
|
luke14free, the code that you have posted not work for me, i use N70 and the e60 2nd edition FP2 emulator
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Problem in simultaneously playout and recording in 6680 | santosh shetty | Symbian Media (Graphics & Sounds) | 2 | 2006-04-18 23:36 |
| problem while recording in buffers in CmdaAudioInputStream and playing with CmdaAudio | rajkumar278 | Symbian Media (Graphics & Sounds) | 7 | 2006-01-29 21:46 |
| Sound recording and playing | sasa | General Symbian C++ | 0 | 2004-10-12 14:41 |
| Simultaneous audio playing and recording | mzamostny | General Symbian C++ | 0 | 2004-01-04 21:44 |
| help with sound recording and playing | walterzcm | Mobile Java General | 1 | 2002-11-06 12:42 |