Play background sound #19
1 changed files with 5 additions and 1 deletions
6
build.rs
6
build.rs
|
@ -128,7 +128,11 @@ impl AssetsWriter {
|
||||||
writeln!(file, "{indent}\t\t_ctx.load_texture_from_bytes({asset_const_name:?}, {asset_const_name});")?;
|
writeln!(file, "{indent}\t\t_ctx.load_texture_from_bytes({asset_const_name:?}, {asset_const_name});")?;
|
||||||
}
|
}
|
||||||
for asset_const_name in root.sound_assets.values() {
|
for asset_const_name in root.sound_assets.values() {
|
||||||
writeln!(file, "{indent}\t\tcomfy::load_sound_from_bytes({asset_const_name:?}, {asset_const_name}, Default::default());")?;
|
writeln!(file, "{indent}\t\tcomfy::load_sound_from_bytes({asset_const_name:?}, {asset_const_name},")?;
|
||||||
|
writeln!(
|
||||||
|
file,
|
||||||
|
"{indent}\t\t\tcomfy::StaticSoundSettings::new().loop_region(..));"
|
||||||
|
)?;
|
||||||
}
|
}
|
||||||
for group_name in root.groups.keys() {
|
for group_name in root.groups.keys() {
|
||||||
writeln!(file, "{indent}\t\t{group_name}::Assets::load(_ctx);")?;
|
writeln!(file, "{indent}\t\t{group_name}::Assets::load(_ctx);")?;
|
||||||
|
|
Loading…
Reference in a new issue