+ p_aout->output.i_nb_samples = p_sys->i_size / sizeof(u16) / i_nb_channels;
+
+ /* Create aRts thread and wait for its readiness. */
+ if( vlc_thread_create( p_aout, "aout", aRtsThread,
+ VLC_THREAD_PRIORITY_OUTPUT, VLC_FALSE ) )
+ {
+ msg_Err( p_aout, "cannot create aRts thread (%s)", strerror(errno) );
+ arts_close_stream( p_sys->stream );
+ arts_free();
+ free( p_sys );
+ return -1;
+ }