As disch told me im emulating the APU and taking te output every 41 opcodes cycles aprox. Every time i take the out put i fill an array of byte representing the wave (PCM), then when buffer reach 2048 i play it (direct sound). But as disch told me its a poor sound quality. Any suggestions to make the playback better?