Search found 14 matches

by lteixeira
Fri Sep 01, 2006 3:53 am
Forum: PSP Development
Topic: Using Talkman USB Mic for sound recording usin Homebrew APP?
Replies: 29
Views: 20328

Saotome, do you have a better idea what the arguments of sceAudioInputInit do? We already know the following for sure: int sceAudioInputInit(short arg0, short mic_vol, short arg2); - where mic_vol is simply a signed short representing input volume. - arg0 produces weird results. In y...
by lteixeira
Tue Aug 29, 2006 1:45 am
Forum: PSP Development
Topic: Using Talkman USB Mic for sound recording usin Homebrew APP?
Replies: 29
Views: 20328

Hi,

I'm contributing the audio input library I've created for the PSP Memo Recorder program I've created. It can be found in this post.

lteixeira
by lteixeira
Sat Aug 26, 2006 12:21 am
Forum: PSP Development
Topic: Using Talkman USB Mic for sound recording usin Homebrew APP?
Replies: 29
Views: 20328

Hi, please check this thread, where I am posting new versions. The latest version already features 60 seconds max recording duration (file recording under way) and you can also control mic gain through the up and down arrows.

lteixeira
by lteixeira
Fri Aug 25, 2006 1:04 am
Forum: PSP Development
Topic: Using Talkman USB Mic for sound recording usin Homebrew APP?
Replies: 29
Views: 20328

Ok wazowski, the callback definition which is in pspaudiolib I also used for the audio input (the best thing to do afterwards is to SVN commit this new code to PSPSDK). The definition typedef int (* pspAudioThreadfunc_t)(int args, void *argp); isn't used anywhere in p...
by lteixeira
Thu Aug 24, 2006 9:43 pm
Forum: PSP Development
Topic: Using Talkman USB Mic for sound recording usin Homebrew APP?
Replies: 29
Views: 20328

The most adequate is to use sceAudioInput in a thread where a callback from your application is invoked, in a similiar way to what is implemented in pspaudiolib. The only major difference is that instead of writing to a buffer you are reading from it. By frame Saotome means each frame of the two fra...
by lteixeira
Tue Aug 22, 2006 8:41 am
Forum: PSP Development
Topic: Using Talkman USB Mic for sound recording usin Homebrew APP?
Replies: 29
Views: 20328

PSP Memo Recorder v0.5

Hi, I'm posting PSP Memo Recorder v0.5, which is a sample program showing usage of the audio input syscalls. With this program you can record (in RAM) 5 seconds of audio and play it back afterwards. It requires the PSP remote and a headset such as the one used for the SOCOM game. PC to PSP headset a...
by lteixeira
Mon Aug 21, 2006 6:17 am
Forum: PSP Development
Topic: Using Talkman USB Mic for sound recording usin Homebrew APP?
Replies: 29
Views: 20328

There is a difference in behaviour between sceAudioInput() and sceAudioInputBlocking(). The first one returns immediately (probably returns before the buffer is entirely filled). The second takes some extra time to return, causing noise to be heard (I have a loop between input and output), most like...
by lteixeira
Mon Aug 21, 2006 5:00 am
Forum: PSP Development
Topic: Using Talkman USB Mic for sound recording usin Homebrew APP?
Replies: 29
Views: 20328

Ok, now it works. I had to change a few things. I was looking up the syscall pointers using kernel mode code such as sceKernelFindModuleByName(). Now I'm declaring the functions using extern as you said, which makes it a lot simpler :) I didn't notice these where specified in audio.S. Now I can run ...
by lteixeira
Mon Aug 21, 2006 12:43 am
Forum: PSP Development
Topic: Using Talkman USB Mic for sound recording usin Homebrew APP?
Replies: 29
Views: 20328

Saotome, are you doing anything else besides initializing the sound input with sceAudioInputInit() (NID = 0x7DE61688) and calling sceAudioInput() (NID = 0x6D4BEC68) to filll the buffer. I'm using 1024 for the buffer size and 44100 as sample rate. I'm calling the function from within a dedicated thre...
by lteixeira
Sun Aug 20, 2006 10:28 am
Forum: PSP Development
Topic: Using Talkman USB Mic for sound recording usin Homebrew APP?
Replies: 29
Views: 20328

Moreover I managed to inject some signal and I see a perfectly nice waveform very similar to the picture I see in my oscilloscope :). The second argument of sceAudioInputInit clearly seems to be the microphone gain level. But increasing it's value above 0x20 doesn't have any effect on the amplitude ...
by lteixeira
Sun Aug 20, 2006 10:05 am
Forum: PSP Development
Topic: Using Talkman USB Mic for sound recording usin Homebrew APP?
Replies: 29
Views: 20328

Saotome, I tried your program using the remote, and whenever I put and remove the headphones jack there is reaction in the graph so I believe its working. Try using the remote because the 3.5 mm jack in the psp body doesn't have the microphone pins (the connector is a standard 3 pin one). Instead th...
by lteixeira
Sun Aug 20, 2006 7:40 am
Forum: PSP Development
Topic: Using Talkman USB Mic for sound recording usin Homebrew APP?
Replies: 29
Views: 20328

details on the audio input syscalls

Hi, upon tying to play with the audio input syscalls, so far I've been able to obtain the following: calling sceAudioInputInit supposing the following prototype: int sceAudioInputInit(int samplecount, int format); it returns 0. Next, I call sceAudioInputBlocking from a dedicated thread. The prototyp...
by lteixeira
Tue Jul 18, 2006 8:14 am
Forum: PSP Development
Topic: Mapping the sceAudioInput syscall
Replies: 2
Views: 1341

Relative to the microphone, the Socom headset shows pretty good evidence that the analog microphone input is the 4th ring in the stereo jack, so it should be quite easy to adapt a regular pc headset to this kind of jack. Now what is the most important is to figure out the parameters of the audio inp...
by lteixeira
Fri Jul 14, 2006 7:43 am
Forum: PSP Development
Topic: Mapping the sceAudioInput syscall
Replies: 2
Views: 1341

Mapping the sceAudioInput syscall

Hi, Is there any work done so far in extending the existing libraries to include the sceAudioInput, sceAudioGetInputLength, sceAudioInputBlocking and sceAudioInputInit system calls? The existing versions of the libraries don't seem to cover these yet.. Implementing the binding to these system calls ...