[patch] Consistent global limits for rate and channels

Aperta
#507 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
c, linux

Direzione di ricerca

Start with pcm_plugin.h and its SND_PCM_PLUGIN_RATE_MIN and SND_PCM_PLUGIN_RATE_MAX definitions, then grep alsa-lib and alsa-utils for hard-coded rate and channel limits, including the 786000 value. The changes are in the attached patch files, not the issue text, so check them before starting. Done means local limits use the shared macros, the new max-channel globals are defined, and the typo is fixed. The thread has been quiet for about 138 days and the maintainer asked for the patches on the mailing list, so confirm the route first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello.

I've noticed that pcm_plugin.h provides SND_PCM_PLUGIN_RATE_MIN and ...MAX, but these values are not used always. Rather, various local limits used, include a bit unusual ones like 786000 (this one is probably just a typo). In order to make limits consistent across alsa-lib (and -utils), i've make these small patches. Also two more globals introduced for max channels. As well as some minor things fixed.

Are there chances that it can be merged?

I'll share via mailing list if need.

Thanks!

alsa-lib.patch

alsa-utils.patch

Lingua principale
C
Stelle
501
Fork
227
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di alsa-project/alsa-lib

Tutte le issue di alsa-project/alsa-lib

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.