realtime dsp under linux – guitar application roberto bender porto alegre, 30 de junho de 2009

6
Realtime DSP under Linux – Guitar Application Roberto Bender Porto Alegre, 30 de Junho de 2009

Upload: internet

Post on 17-Apr-2015

109 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Realtime DSP under Linux – Guitar Application Roberto Bender Porto Alegre, 30 de Junho de 2009

Realtime DSP under Linux – Guitar ApplicationRoberto Bender

Porto Alegre, 30 de Junho de 2009

Page 2: Realtime DSP under Linux – Guitar Application Roberto Bender Porto Alegre, 30 de Junho de 2009

Projeto Original

ComputerComputer

KitADSP

KitADSP

FiltersCore

FiltersCore

GuitarGuitar

Audio Output Device

Audio Output Device

Page 3: Realtime DSP under Linux – Guitar Application Roberto Bender Porto Alegre, 30 de Junho de 2009

Projeto Modificado◦ Facilitação dos testes

Computerand DSP

Application

Computerand DSP

Application

FiltersCore

FiltersCore

GuitarGuitar

Audio Output Device

Audio Output Device

KitDSPKit

DSP

Page 4: Realtime DSP under Linux – Guitar Application Roberto Bender Porto Alegre, 30 de Junho de 2009

Como Fazer?◦ Conseguir acesso aos dispositivos de entrada e

saída no Linux;◦ Conseguir realmente processar a entrada em

tempo real;◦ Escolher o número de canais, frequência de

amostragem, tamanho de buffers, ...

Page 5: Realtime DSP under Linux – Guitar Application Roberto Bender Porto Alegre, 30 de Junho de 2009

Dificuldades◦ Saída = Entrada em tempo real◦ Read Only, Write Only and Read and Write◦ SNDCTL_DSP_SETDUPLEX◦ SNDCTL_DSP_SETFRAGMENT◦ IO Threads◦ Events◦ Semaphores

Page 6: Realtime DSP under Linux – Guitar Application Roberto Bender Porto Alegre, 30 de Junho de 2009

Processamento◦ Distorção◦ Ganho◦ Atraso