Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void play(String path){
- try {
- FileConnection fc = (FileConnection) Connector.open(path, Connector.READ);
- InputStream is = fc.openInputStream();
- rawData = IOUtilities.streamToBytes(is);
- byte[] buf = new byte[4096];
- int len;
- while ((len = is.read(buf)) != -1){
- playEncryptedAudio(buf);
- }
- is.close();
- fc.close();
- }
- catch (IOException ioex){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement