Realtime DSP under Linux – Guitar Application Roberto Bender Porto Alegre, 30 de Junho de 2009.
Transcript of 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
Projeto Original
ComputerComputer
KitADSP
KitADSP
FiltersCore
FiltersCore
GuitarGuitar
Audio Output Device
Audio Output Device
Projeto Modificado◦ Facilitação dos testes
Computerand DSP
Application
Computerand DSP
Application
FiltersCore
FiltersCore
GuitarGuitar
Audio Output Device
Audio Output Device
KitDSPKit
DSP
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, ...
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
Processamento◦ Distorção◦ Ganho◦ Atraso