About the bios sets with samples, I found another one:
<machine name="allied" sourcefile="allied.c" isbios="yes" sampleof="genpin">
<description>Allied System</description>
<year>1977</year>
<manufacturer>Allied Leisure</manufacturer>
<rom name="6530-009.u5" size="1024" crc="e4fb64fb" sha1="a3d9de7cbfb42180a860e0bbbeaeba96d8bd1e20" region="maincpu" offset="1400"/>
<rom name="6530-010.u6" size="1024" crc="dca980dd" sha1="3817d75413854d889fc1ce4fd6a51d820d1e0534" region="maincpu" offset="1800"/>
<rom name="6530-011.u3" size="1024" crc="13f42789" sha1="baa0f73fda08a3c5d6f1423fb329e4febb07ef97" region="maincpu" offset="1c00"/>
<device_ref name="m6504"/>
<device_ref name="speaker"/>
<device_ref name="samples"/>
<device_ref name="pia6821"/>
<device_ref name="pia6821"/>
<device_ref name="pia6821"/>
<device_ref name="pia6821"/>
<device_ref name="pia6821"/>
<device_ref name="mos6530"/>
<device_ref name="mos6530"/>
<device_ref name="mos6530"/>
<device_ref name="timer"/>
<sample name="bumper"/>
<sample name="chime1"/>
<sample name="chime2"/>
<sample name="chime3"/>
<sample name="chime4"/>
<sample name="hole"/>
<sample name="knocker"/>
<sample name="sling"/>
<sample name="coinin"/>
<chip type="cpu" tag="maincpu" name="M6504" clock="893137"/>
<chip type="audio" tag="mechvol" name="Speaker"/>
<chip type="audio" tag="samples" name="Samples"/>
<sound channels="1"/>
.....
</machine>
clrmame won't scan the samples in bios set, but if I scan it through using the whole datfile, I won't find any error, becasue there are other places of the datfile have code like this:
<machine name="mbossy" sourcefile="gp_2.c" ismechanical="yes" sampleof="genpin">
<description>Mike Bossy</description>
<year>1982</year>
<manufacturer>Game Plan</manufacturer>
<rom name="mb_a.716" size="2048" status="nodump" region="roms" offset="0"/>
<rom name="mb_b.716" size="2048" status="nodump" region="roms" offset="800"/>
<rom name="mb_c.716" size="2048" status="nodump" region="roms" offset="1000"/>
<rom name="mb.u9" size="2048" crc="dfa98db5" sha1="65361630f530383e67837c428050bcdb15373c0b" region="cpu2" offset="3800"/>
<rom name="mb.u10" size="2048" crc="2d3c91f9" sha1="7e1f067af29d9e484da234382d7dc821ca07b6c4" region="cpu2" offset="3000"/>
<device_ref name="z80"/>
<device_ref name="nvram"/>
<device_ref name="speaker"/>
<device_ref name="samples"/>
<device_ref name="i8255"/>
<device_ref name="z80ctc"/>
<device_ref name="timer"/>
<sample name="bumper"/>
<sample name="chime1"/>
<sample name="chime2"/>
<sample name="chime3"/>
<sample name="chime4"/>
<sample name="hole"/>
<sample name="knocker"/>
<sample name="sling"/>
<sample name="coinin"/>
<chip type="cpu" tag="maincpu" name="Z80" clock="2457600"/>
<chip type="audio" tag="mechvol" name="Speaker"/>
<chip type="audio" tag="samples" name="Samples"/>
<sound channels="1"/>
.....
</machine>
clrmame will scan the same samples in non bios sets, so I won't see any error.