This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wav file

 
Dawid Skrzypczynski
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi again,

I have a class to read wav files:



How to read a file from a certain point. if the file is 1mb I would start to read it from, say, 400 kb. is a method that returns microsecond but there is no method which would allow the file to read from a microsecond.



Maybe you know how to deal with it?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not aware of an audio API that does this. Most APIs allow you to read the file, and then start playing at a certain time, though.


This is a bad idea, by the way. You must handle exceptions properly; if any of these occur, the following code will not work, and you will have no idea why because you don't even log the error.
 
Dawid Skrzypczynski
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic