forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with Audio Mechanica

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Thu Nov 06, 2008 2:03 pm    Post subject: Help with Audio Mechanica Reply with quote

Hi Guys,
I'm really pulling my hair out here.. tried for a number of hours to support the Talkman USB mic in my recording app
based on theChotto recording sample posted here.

Anyway, I *sort of* have it working... found the s and h file in Furikup source.
It connects and records, but sounds like crap cutting in & out very fast.
Here's a ten second voice sample where I count up the seconds:
http://rapidshare.com/files/161078633/Talkman.zip.html

....and the code:
Code:

if (mictype == 3) {      // Talkman USB microphone PSP-240

   sceUsbMicInputBlocking(4096,44100,buffer);
   sceIoWrite(fd, buffer, 16384);
   datasize += 16384;
}

if (mictype == 2) {      // Go!Cam or Chotto microphone PSP-300

   sceUsbCamReadMicBlocking(buffer, 4096);
   sceIoWrite(fd, buffer, 4096);
   datasize += 4096;
}

if (mictype == 1) {      // Socom Headset or DIY microphone PSP 270x

   sceAudioInputBlocking(2048, 44100, buffer);
   sceIoWrite(fd, buffer, 4096);
   datasize += 4096;
}


Both other types of mics are working fine.
I know that sceAudioInputBlocking reads in 16 bit values at a time, so I just double the number of bytes written to the MS.
For the Talkman, if I write any less than 16384 bytes, the playback time is faster than it should be.

Any help appreciated.. I have Go!Cam and Socom headset, but I'd really love to get all three working,
and Talkman software was crap, so it would be good to put the mic to use.
Cheers, Art.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Thu Nov 06, 2008 8:03 pm    Post subject: Reply with quote

Lol, forget it.

There is apparently a known problem with the blocking function.
You have to use sceUsbMicInput.
It's fine now :)
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group