if (status != noErr)
return VLC_EGENERIC;
- fmt->i_format = VLC_CODEC_S16L;
+ fmt->i_format = VLC_CODEC_S16N;
fmt->i_physical_channels = AOUT_CHANS_STEREO;
fmt->i_rate = 44100;
aout_FormatPrepare(fmt);
stream_type = MUSIC;
- /* We can only accept U8 and S16L */
- if (fmt->i_format != VLC_CODEC_U8 && fmt->i_format != VLC_CODEC_S16L)
- fmt->i_format = VLC_CODEC_S16L;
- format = (fmt->i_format == VLC_CODEC_S16L) ? PCM_16_BIT : PCM_8_BIT;
+ /* We can only accept U8 and S16N */
+ if (fmt->i_format != VLC_CODEC_U8 && fmt->i_format != VLC_CODEC_S16N)
+ fmt->i_format = VLC_CODEC_S16N;
+ format = (fmt->i_format == VLC_CODEC_S16N) ? PCM_16_BIT : PCM_8_BIT;
/* TODO: android supports more channels */
fmt->i_original_channels = fmt->i_physical_channels;
waveformat.SubFormat = _KSDATAFORMAT_SUBTYPE_IEEE_FLOAT;
break;
- case VLC_CODEC_S16L:
+ case VLC_CODEC_S16N:
waveformat.Format.wBitsPerSample = 16;
waveformat.Samples.wValidBitsPerSample =
waveformat.Format.wBitsPerSample;
(i_rate / 20) * 4 * i_nb_channels, b_probe )
!= VLC_SUCCESS )
{
- if ( CreateDSBuffer( p_aout, VLC_CODEC_S16L,
+ if ( CreateDSBuffer( p_aout, VLC_CODEC_S16N,
i_channels, i_nb_channels, i_rate,
(i_rate / 20) * 2 * i_nb_channels, b_probe )
!= VLC_SUCCESS )
}
else
{
- *i_format = VLC_CODEC_S16L;
+ *i_format = VLC_CODEC_S16N;
return VLC_SUCCESS;
}
}
= AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;
}
- /* Support s16l only */
- format.i_format = VLC_CODEC_S16L;
+ /* Support S16 only */
+ format.i_format = VLC_CODEC_S16N;
aout_FormatPrepare( &format );
p_sys->p_buffer_chain = NULL;
p_sys->pp_buffer_last = &p_sys->p_buffer_chain;
- // we want 16bit signed data little endian.
- fmt->i_format = VLC_CODEC_S16L;
+ // we want 16bit signed data native endian.
+ fmt->i_format = VLC_CODEC_S16N;
fmt->i_physical_channels = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;
p_aout->play = Play;
p_aout->pause = Pause;
waveformat.SubFormat = __KSDATAFORMAT_SUBTYPE_IEEE_FLOAT;
break;
- case VLC_CODEC_S16L:
+ case VLC_CODEC_S16N:
waveformat.Format.wBitsPerSample = 16;
waveformat.Samples.wValidBitsPerSample =
waveformat.Format.wBitsPerSample;
i_channels, i_nb_channels, i_rate, b_probe )
!= VLC_SUCCESS )
{
- if ( OpenWaveOut( p_aout, i_device_id, VLC_CODEC_S16L,
+ if ( OpenWaveOut( p_aout, i_device_id, VLC_CODEC_S16N,
i_channels, i_nb_channels, i_rate, b_probe )
!= VLC_SUCCESS )
{
}
else
{
- *i_format = VLC_CODEC_S16L;
+ *i_format = VLC_CODEC_S16N;
return VLC_SUCCESS;
}
}