All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 23-06-2005, 12:35 PM
dtripathy dtripathy is offline
Registered User
 
Join Date: Apr 2005
Posts: 9
dtripathy is on a distinguished road
Unable to read a wav file

I am trying to dump a wav file which is already in a folder,I am just trying to read it and dump it another folder .I have used

TBuf8<40000> buf8;

// Create (replace) the direct file store
RFile f1;
RFs fsSession;
User::LeaveIfError(fsSession.Connect());
// User::LeaveIfError(fsSession.SetSessionPath(Kpath) );
TInt i=0;
if( ( i=f1.Open(fsSession,KSoundSampleFile,EFileRead| EFileStreamText))==KErrNone )
{

// User::Leave(i);

}

while (buf8.Length()==0)
{

f1.Read(buf8);
{
// User::Leave(i);
}

CFileStore* iFilestore=CDirectFileStore::ReplaceL(fsSession,Kp ath,EFileWrite|EFileShareAny);
f1.Open(fsSession,Kpath,EFileWrite|EFileShareAny);
f1.Write(buf8);
}

f1.Close();
fsSession.Close();


it is working but taking the size of TBuf as 40000 is not a good paractice of programming .So what I want is I should read a part of file and write it agin the next part and write it till the end of file come (we can call it as sreaming).

Which API should I follow for this or from where can I get the example for this?
plz reply
Ads
 

Bookmarks

Tags
file, read, unable, wav

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make wav file ( MB to KB ) amy Nokia 6600 and 6620 2 28-05-2004 11:38 AM
What kind of WAV are you using? Muzikfreakah Sony Ericsson P800, P900 and P910 9 25-03-2003 10:24 PM
Unable to move the file phone is out of memory Muzikfreakah Sony Ericsson P800, P900 and P910 0 12-03-2003 12:58 PM
large wav file playing problem kaakhvan Nokia 9210 and 9290 0 17-12-2001 12:36 PM



All times are GMT. The time now is 03:19 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy