Commit graph

9 commits

Author SHA1 Message Date
Sigrid 601dd12651 audio/mp3dec: mad timer duration is all wrong, use samples instead 2020-08-12 11:42:00 +02:00
Sigrid 81dba13271 audio/mp3dec: add -s SECONDS option 2020-08-12 10:43:46 +02:00
cinap_lenrek c76243e7e5 fix wrong type for terminating nil argument for execl()
we have to use (void*)0 instead of (int)0 otherwise the
upper bits are uninitialized on amd64.
2014-02-05 19:25:24 +01:00
cinap_lenrek a60001871e mp3dec: fix volume for mp3dec
the libmad samples need to be scaled properly. the
previous assumption was that it is 32 bits, but it
really is MAD_F_FRACTBITS + sign bit and rest used
for overflow.

thanks eekee!
2013-11-06 22:18:36 +01:00
cinap_lenrek 0903d01134 audio: fix broken write() size for mp3dec/oggdec/flacdec
they accidently wrote additional bytes in the stream. this
confused the new audio/pcmconv (now actually checking
if it got complete samples).
2012-12-11 19:55:02 +01:00
cinap_lenrek 0d84343fbc audio: add audio/pcmconv program
instead of duplicating resampling and pcm format
conversion code, put it in the new pcmconv program.
2012-12-08 08:26:50 +01:00
cinap_lenrek a57ad59bf0 mp3dec: skip ID3v2 tags 2012-02-14 15:42:58 +01:00
cinap_lenrek b70a7fc963 mp3dec: resample to target frequency, play: guess mp3 from filename 2012-01-26 01:43:17 +01:00
cinap_lenrek 5524d76075 move mp3 stuff to /sys/src/cmd/audio, add ogg vorbis, add play 2012-01-22 23:30:34 +01:00