diff --git a/agb-sound-converter/src/lib.rs b/agb-sound-converter/src/lib.rs index 4b6ddebf..c38efb79 100644 --- a/agb-sound-converter/src/lib.rs +++ b/agb-sound-converter/src/lib.rs @@ -66,9 +66,12 @@ pub fn include_wav(input: TokenStream) -> TokenStream { let result = quote! { { + #[repr(align(4))] + struct AlignmentWrapper([u8; N]); + const _: &[u8] = include_bytes!(#include_path); - include_bytes!(#out_file_path_include) + &AlignmentWrapper(*include_bytes!(#out_file_path_include)).0 } };