I remember my days using mythtv and the issues of syncing video and audio together.
Streaming video and audio can be complicated.
Now if I apply the same principle to pinmame for a DMD display of frames and syncing that with audio that is quite the concept.
I am not sure how much sync is in place for the DMD animation of rom frames to sound samples.
When I code my own games using just an arduino or teensy, I give no thought to these concerns.
I stream a DMD gif (Sort of like request gif dmd playback) or I stream a wav/mp3 sound stream but never do I sync the two streams.
As well | would build my own individual DMD frames on the teensy for score and dynamic stuff.
This way I keep my coding logic simple. Kinda like this psuedo code
main_line() {
if (sound_event_triggered) Send_soundnum_to_pi_to_playback();
if (DMD_Updated) Send_dmd_update_to_teeny(data_frame);
if (SevenSegDisp_Updated) Send_SevenSegDisp_update(data2);
if (20x4LED_Updated) Send_20x4LED_Update(data3);
if (LampUpdated) Send_lamp_ardunio_uno(lamparray);
... and lot more stuff
}
The drawback to that concept is the lack of sync between DMD and audio
The teensy will have a complete copy of all the DMD frames because it has a local sd card with sufficent store and some local dmd smarts
The pi will have the complete copy of all the wave/mp3 files for local playback, buffering, queuing, multi channels, etc.
The lamp stuff is simply controlled on my little uno. I have to create my own sequencing of lamp control and attract mode sequences.
This type of methodology works well for my simple games
Trying to reverse engineer the rom to a real pinball machine link the lisy1 and lisy80... Thanks pretty cool.
Will I ever build and adopt a full pinmame to hardware abstract layer to arduinos and pi for my next project... Time will tell.
Normally I want to modify and add my own touches to a game, like adding new rule, skill shots, sound changes, add a DMD to a machine that traditionally had none.
With that in mind, that would preclude me from using a rom.
Edited by legtod2, 12 May 2019 - 01:33 PM.



Top










are all trademarks of VPFORUMS.