Re: [PATCH] aplay: Fix header for raw format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 29 Jun 2017 13:17:16 +0200,
Ion-Horia Petrisor wrote:
> 
> Raw format has no header, so use 0 when calling playback_go.

It's the value passed for the length that has been already loaded.
The program has read dta bytes for parsing the header, and it's raw
data without header.  Thus you need to pass dta there.


thanks,

Takashi

> 
> Signed-off-by: Ion-Horia Petrisor <ion-horia.petrisor@xxxxxxx>
> ---
>  aplay/aplay.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/aplay/aplay.c b/aplay/aplay.c
> index 00af662..fe274ed 100644
> --- a/aplay/aplay.c
> +++ b/aplay/aplay.c
> @@ -2831,7 +2831,7 @@ static void playback(char *name)
>  		/* should be raw data */
>  		init_raw_data();
>  		pbrec_count = calc_count();
> -		playback_go(fd, dta, pbrec_count, FORMAT_RAW, name);
> +		playback_go(fd, 0, pbrec_count, FORMAT_RAW, name);
>  	}
>        __end:
>  	if (fd != 0)
> -- 
> 2.7.4
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@xxxxxxxxxxxxxxxx
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux