From: Vinod Koul Date: Mon, 17 Feb 2014 17:25:24 +0000 (+0530) Subject: compress: use int for samples in compress_get_tstamp X-Git-Tag: v1.1.0~19 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=fe7f5f52c0301d419a02f20111b5b58ea9025dd5;p=tinycompress.git compress: use int for samples in compress_get_tstamp in 64bit updates we made the sample rate as 32bit explicitly, so update the library API as well Signed-off-by: Vinod Koul --- diff --git a/compress.c b/compress.c index d1a2283..15dfdb7 100644 --- a/compress.c +++ b/compress.c @@ -333,7 +333,7 @@ int compress_get_hpointer(struct compress *compress, } int compress_get_tstamp(struct compress *compress, - unsigned long *samples, unsigned int *sampling_rate) + unsigned int *samples, unsigned int *sampling_rate) { struct snd_compr_tstamp ktstamp; diff --git a/include/tinycompress/tinycompress.h b/include/tinycompress/tinycompress.h index e340cca..03c396f 100644 --- a/include/tinycompress/tinycompress.h +++ b/include/tinycompress/tinycompress.h @@ -125,7 +125,7 @@ int compress_get_hpointer(struct compress *compress, * @sampling_rate: sampling rate of decoded samples */ int compress_get_tstamp(struct compress *compress, - unsigned long *samples, unsigned int *sampling_rate); + unsigned int *samples, unsigned int *sampling_rate); /* * compress_write: write data to the compress stream