×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    116

    Convert mp3 files data

    Hi,

    I want to convert mp3 files data into TBuf Can anyone please help me?

    Thanks
    Opu

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Convert mp3 files data

    Hi,

    If you really want to load the whole mp3 into memory you can use RFile class for it. It has method to get the file size RFile::Size(), then you need to allocate the heap bufer of the file size - for this check the HBufC8 class and finaly use the RFile::Read() to load the buffer.

    Anyway think twice if such operation is REALLY necessary as it will be quite slow if e.g. the 3MB file will be loaded from the memory card and it will consume a lot of memory...

    Regards,
    STeN

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    116

    Re: Convert mp3 files data

    Thanks STeN

    I am trying with that procedure....

    yes you are right this is not an efficent trick...
    Opu

Similar Threads

  1. Replies: 2
    Last Post: 2004-09-15, 22:47

Posting Permissions

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