Moderators: Dave Moll, Andrew Davie, Steve Anderson
Klaas Robers wrote:And how about sync? I have a CD that came with the MUTR televisor, which was not a CD but a CD-ROM containing kind of .wave files. Some CD-players can play that, but when going from one track to the next, there was a hic-up in the sync. Then you see that the disc has to resynchronise. With the small and light disc of the MUTR this went in about 1½ second, but with others this takes more time. Then you loose the first part of the scene.
Of course you can make it such that when there is no file playing, that the disc is kept in digital synchronisation and every file starts and stops exactly on a (missing) sync pulse. More over it is possible to store sync-less video on the SD-card and rely completely on the byte count. Sync pulses are no more needed for synchronisation! You simply start and stop reading from the card when your Arduino detects the single sync hole in the disc. This is something where even J.L.Baird could not have been dreaming of.
And you can have files with sound and files without sound, which will save you 50% of storage capacity in the second case. For the "no sound" files you can even skip storing the wasted time for the no more needed sync pulses. The black bar can be generated in real time by the Arduino on its own. Although this will save you just a few % of storage capacity.
You see? Many new possibilities!
Andrew Davie wrote:you need to read asyncrhronously and have a guaranteed "already in RAM" buffer to play back from.
gary wrote:Andrew Davie wrote:you need to read asyncrhronously and have a guaranteed "already in RAM" buffer to play back from.
Yes Andrew, without Direct Memory Access, double buffering will be problematical, I will be interested in seeing what you come up with.
gary wrote:Well double buffering, IMHO, is just a minimal circular buffer - think of the ring as having only 2 segments - but my point was, THAT is the minimum you need.
When I code an audio player or recorder it generally has more, but smaller, buffers.
Return to Andrew Davie's Arduino Televisor
Users browsing this forum: No registered users and 1 guest