Commit c81a797c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Another incorrect type aliasing on big endian

parent f13e926f
......@@ -163,6 +163,7 @@ static int wav_play (ao_instance_t * _instance, int flags, sample_t * _samples)
{
float floats[256 * 6];
int16_t words[0];
int32_t dwords[0];
} ordered_samples;
int chans, size;
uint32_t speaker_flags;
......@@ -246,7 +247,7 @@ static int wav_play (ao_instance_t * _instance, int flags, sample_t * _samples)
ordered_samples.floats[i * chans + chan_map[flags][j]] =
_samples[j * chans + i];
s32_LE (ordered_samples, chans);
s32_LE (ordered_samples.dwords, chans);
size = 256 * sizeof (float) * chans;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment