You Are Here:

Community: Developer Discussion Boards

#1 Old Question Recording and playing at the same time(voip) - 2007-05-04, 20:14

Join Date: Oct 2006
Posts: 10
luke14free
Offline
Registered User
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
Reply With Quote

#2 Old Re: Recording and playing at the same time(voip) - 2007-05-07, 11:29

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
Full duplex audio or audio streaming isn't yet supported in PyS60.
Reply With Quote

#3 Old Any Solution? - 2007-05-08, 16:21

Join Date: Oct 2006
Posts: 10
luke14free
Offline
Registered User
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
Reply With Quote

#4 Old Thumbs up Re: [resolved]Recording and playing at the same time(voip) - 2007-05-09, 16:27

Join Date: Oct 2006
Posts: 10
luke14free
Offline
Registered User
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"
Reply With Quote

#5 Old Re: Recording and playing at the same time(voip) - 2008-01-04, 14:33

Join Date: Jan 2007
Posts: 8
dany88a
Offline
Registered User
luke14free, the code that you have posted not work for me, i use N70 and the e60 2nd edition FP2 emulator
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia