Results 1 to 3 of 3

Thread: play mp3 in bytes array

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2000
    Location
    Québec City
    Posts
    73
    Is there a way to play a mp3 that is contained in a byte array?

    If I write it on the hard drive, I can play it easily with
    mciSendString

    but what if I don't want to write it on the drive and leave it in memory?

    Thanks

    Krushstone

  2. #2
    Megatron
    Guest
    Why not just have it stored in the byte array, then create a *.tmp file to play it, then delete the *.tmp file when the application closes.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2000
    Location
    Québec City
    Posts
    73
    Because I want to know if there is a way to do it without writing it first.

    Anyway, if I write it, the function that will play it will need to read it, and then I delete the file...

    I'd like to avoid all these hard drive I/O if possible.

    Is it possible?

    thanks for your suggestions

    Krushstone

Posting Permissions

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



Click Here to Expand Forum to Full Width