This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes wav file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "wav file" Watch "wav file" New topic
Author

wav file

Dawid Skrzypczynski
Ranch Hand

Joined: Jun 08, 2011
Posts: 50
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
Marshal

Joined: Mar 22, 2005
Posts: 35440
    
    9
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.


Android appsImageJ pluginsJava web charts
Dawid Skrzypczynski
Ranch Hand

Joined: Jun 08, 2011
Posts: 50
I made
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: wav file
 
Similar Threads
Play a .wav file
Problem stopping audio in using sun.audio package
Anyway to convert this to a method...?
Progress Bar while using Streaming
Help on stopping method...