60 likes | 227 Views
Petr Pokorný (pokorp7@fel.cvut.cz). Audio Input for Applications on Playstation 3. Project Goals. Design and implement software layout for Playstation 3 which let distrubute uncompress data from extern soundcard to all cores of Cell processor Develop software equipment as libraries
E N D
Petr Pokorný (pokorp7@fel.cvut.cz) IBM - CVUT Student Research Projects Audio Input for Applications on Playstation 3
IBM - CVUT Student Research Projects 2 Project Goals Design and implement software layout for Playstation 3 which let distrubute uncompress data from extern soundcard to all cores of Cell processor Develop software equipment as libraries Realize demonstration application to check functionality of subsystem
IBM - CVUT Student Research Projects 3 Description of Solution Application creats circle queue in main memory Circle queue is filled by samples from input After definite count of samples (10 ms) PPU sends to SPU signal containing address of last sample. After reception of singnal, SPU loads frame from main memory and send signal to PPU to free space in circle queue
IBM - CVUT Student Research Projects 4 Scheme of solution External Soundcard ALSA API ALSA Subsystem CELL Processor PPU SPU6 SPU1
IBM - CVUT Student Research Projects 5 Alsa API Using advanced linux sound architecture (ALSA) Using user space library (alsa-lib) to simplify application programming and provide higher level functionality Read/write transfer is provided by routines for interleaved transfers: snd_pcm_writei() snd_pcm_readi() example of read sound data to memory: frames = snd_pcm_readi(handle, buffer,sizeof(buffer)); handle – handle for PCM device buffer – buffer for loaded data
IBM - CVUT Student Research Projects 6 Project Status Solution of problem is thinked out Work of external soundcard on Playstation 3 has been teste succesfuly Play and capture of sound using ALSA API has been tested succesfully