Fix invalid write in AudioStreamSample::save_to_wav
Fix invalid write in AudioStreamSample::save_to_wav

Fixes #29955

pkowal1982/godot,Paulloz/godot,Shockblast/godot,Valentactive/godot,honix/godot,vkbsb/godot,Faless/godot,sanikoyes/godot,Zylann/godot,akien-mga/godot,sanikoyes/godot,Zylann/godot,BastiaanOlij/godot,ex/godot,ZuBsPaCe/godot,DmitriySalnikov/godot,MarianoGnu/godot,DmitriySalnikov/godot,MarianoGnu/godot,ZuBsPaCe/godot,firefly2442/godot,pkowal1982/godot,sanikoyes/godot,BastiaanOlij/godot,Shockblast/godot,Valentactive/godot,honix/godot,godotengine/godot,Zylann/godot,vnen/godot,godotengine/godot,akien-mga/godot,MarianoGnu/godot,Faless/godot,firefly2442/godot,akien-mga/godot,Shockblast/godot,BastiaanOlij/godot,akien-mga/godot,Faless/godot,ZuBsPaCe/godot,pkowal1982/godot,akien-mga/godot,firefly2442/godot,josempans/godot,Paulloz/godot,Zylann/godot,firefly2442/godot,Faless/godot,Zylann/godot,ZuBsPaCe/godot,ex/godot,josempans/godot,Valentactive/godot,honix/godot,sanikoyes/godot,vnen/godot,sanikoyes/godot,pkowal1982/godot,DmitriySalnikov/godot,pkowal1982/godot,josempans/godot,firefly2442/godot,vkbsb/godot,ex/godot,Paulloz/godot,vkbsb/godot,ex/godot,MarianoGnu/godot,DmitriySalnikov/godot,vkbsb/godot,guilhermefelipecgs/godot,godotengine/godot,BastiaanOlij/godot,honix/godot,guilhermefelipecgs/godot,vnen/godot,vkbsb/godot,josempans/godot,guilhermefelipecgs/godot,MarianoGnu/godot,Paulloz/godot,Faless/godot,akien-mga/godot,guilhermefelipecgs/godot,ex/godot,Paulloz/godot,akien-mga/godot,honix/godot,Shockblast/godot,godotengine/godot,vnen/godot,MarianoGnu/godot,sanikoyes/godot,Valentactive/godot,Paulloz/godot,guilhermefelipecgs/godot,Zylann/godot,MarianoGnu/godot,vnen/godot,DmitriySalnikov/godot,pkowal1982/godot,vkbsb/godot,ZuBsPaCe/godot,Zylann/godot,josempans/godot,vnen/godot,akien-mga/godot,Shockblast/godot,MarianoGnu/godot,vnen/godot,DmitriySalnikov/godot,DmitriySalnikov/godot,Valentactive/godot,BastiaanOlij/godot,firefly2442/godot,vnen/godot,pkowal1982/godot,josempans/godot,Faless/godot,Shockblast/godot,Shockblast/godot,pkowal1982/godot,vkbsb/godot,honix/godot,sanikoyes/godot,firefly2442/godot,josempans/godot,Valentactive/godot,Valentactive/godot,ex/godot,ex/godot,sanikoyes/godot,Paulloz/godot,guilhermefelipecgs/godot,josempans/godot,ZuBsPaCe/godot,BastiaanOlij/godot,godotengine/godot,Shockblast/godot,ZuBsPaCe/godot,godotengine/godot,Valentactive/godot,BastiaanOlij/godot,Faless/godot,BastiaanOlij/godot,firefly2442/godot,godotengine/godot,guilhermefelipecgs/godot,vkbsb/godot,ex/godot,Zylann/godot,guilhermefelipecgs/godot,Faless/godot,godotengine/godot,ZuBsPaCe/godot