Help with Audio Mechanica

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Help with Audio Mechanica

Post by Art »

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: Select all

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.
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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.
Post Reply