Home  ›  Phones  ›

Sanyo

Phones & Info News Forums  

all discussions

Audio Recording on MM 8300

softeyes

Nov 30, 2007, 5:08 AM
All,

I'm recording the audio on MM 8300, while committing(rc.commit() method below), it gives IOException.

But the phone supports audio capture and the media version is 1.1.

My code is given below...

Player p = Manager.createPlayer(");
p.realize();
RecordControl rc = (RecordControl) p.getControl(");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
rc.setRecordStream(baos);
rc.startRecord(); p.start();
Thread.currentThread().sleep(30000);
// Record for 30 secs

rc.commit();
p.stop();
baos.close();
p.close();
...

You must log in to reply.

Please log in to report a message to the moderator.


all discussions

Subscribe to Phone Scoop News with RSS Follow @phonescoop on Threads Follow @phonescoop on Mastodon Phone Scoop on Facebook Follow on Instagram

 

Playwire

All content Copyright 2001-2024 Phone Factor, LLC. All Rights Reserved.
Content on this site may not be copied or republished without formal permission.