Jump to content


Laptop kao transport


wwweljko

Recommended Posts

Budi pristojan. Šta ti je?

Sve je to 48.

pcm.!default {
    type plug
    slave.pcm {
        @func getenv
        vars [ ALSAPCM ]
        default "hw:Audigy2" // nebitno
    }
}

To je Arch Linux sa Slave ALSA -> 48. 

Ne veruj u sve što piše po sajtovima.

Link to comment
Share on other sites

1 minut ranije, Zexx said:

Evo upravo slušam Linux plejer i na displeju DAC-a piše 384, baš nekako čudno pišu broj 48...:rolleyes:

 

28 minuta ranije, arnage said:

Fali to što ALSA radi samo na 48. Kada mu pustiš 44.1 prvo će konvertovati na 48 pa će app da vraća na 44.1. 

Da bi se ALSA reprogramirao je potreban ozbiljan rad, što su neke firme i uradile i to debelo naplaćuju.

... ili 333888444 miliona. Konverzija se dogodila.

Link to comment
Share on other sites

5 minuta ranije, DJ.NIK said:

"Ja nisam programer al' volim da pogledam..."

Mora da arnage s(ALSU) vezba na RPi i slicnim uredjajima koji imaju klok za video (48K) pa je malo zbunjen...

http://www.linuxjournal.com/article/6735?page=0,1  ( Listing 2. Opening PCM Device and Setting Parameters)

 

 

Sa linka:

"The program must be linked with the ALSA library, libasound, to run. Typically, you would add the option -lasound on the linker command line. Some ALSA library functions use the dlopen function and floating-point operations, so you also may need to add -ldl and -lm."

i u kodu kaže:

/* Signed 16-bit little-endian format */
  snd_pcm_hw_params_set_format(handle, params,
                              SND_PCM_FORMAT_S16_LE);

  /* Two channels (stereo) */
  snd_pcm_hw_params_set_channels(handle, params, 2);

  /* 44100 bits/second sampling rate (CD quality) */
  val = 44100;
  snd_pcm_hw_params_set_rate_near(handle,
                                 params, &val, &dir);

 

I eto ti je konverzija sa tvog linka...

Jaooo...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...