You are not logged in.

Read the FAQ and Knowledge Base before posting.
We won't make a 3DS/2DS emulator.

#1 2010-06-01 11:58:31

Registered: 2010-06-01
Posts: 1

WORKS : Open AL instead of ALSA for Microphone

Hello folks.

Short summary for those who have a smiliar problem :

I'm running Ubuntu 10.04 with (a Pulseaudio Server and) ALSA, and sometimes using Jack
to make Music, so I had to beome quite good in configurating this stuff, turning off
Pulseaudio if necessary.

Everything works fine but I did not get the microphone working.
I really really tried everything.

Then I compiled the latest version (not from SVN) with the Open AL support.

And : That worked fine, the Microphone was used in the emulator. The Open AL requested a recording sink, and nicley
integrated itself into the PulseAudio/Alsa Setup.


I took the liberty to check why the ALSA Support did not request a recording sink successfully and changed
the source so that I could see the sound error messages (lazy i know).

In mic_alsa.cpp, Line 71, the error was triggerd :

    /* 8bit signed, mono, 16000hz */
    if ((err = snd_pcm_hw_params_set_format(pcm_handle, hwparams, SND_PCM_FORMAT_S8)) < 0) {
        g_printerr("Failed to set format: %s\n", snd_strerror(err));
        g_print("Failed to set format: %s\n", snd_strerror(err));
        return FALSE;

The resulting error line was then :
Failed to set format: Invalid argument
Failed to set format: Invalid argument

So I wonder what the problem was. My ALSA Configuration could not handle 8bit signed, mono, 16000hz output ?

Confusing, not really that important to me, cause it works fine with Open AL, but anyone an idea ?

Thanks for the emulator,
Have a great source, Paramulator.

Last edited by paramulator (2010-06-01 12:05:10)


#2 2010-06-06 21:44:38

From: Peach__'s castle
Registered: 2009-05-29
Posts: 18

Re: WORKS : Open AL instead of ALSA for Microphone

Maybe your driver can't support the format being requested.

That format may seem nonstandard, but actually it's the format used by the DS's microphone, and we're too lazy to implement resampling tongue

Kuribo64 - If you're wondering where Mario__ is, he's currently saving Peach__ once again.


Board footer

Powered by FluxBB