Hajime Hoshi
1d75c9e967
audio/internal/convert: Seek with incomplete bytes should work
...
Usually users use audio.Player objects and doesn't use Resampling
object directly. Resampling object itself is exposed by
audio.Resample, but this is usually used with audio.Player objects.
Thus, this issue is not so serious in the real world.
2024-07-14 18:37:15 +09:00
Hajime Hoshi
fc70392093
audio/internal/convert: typo
2024-07-14 17:51:44 +09:00
Hajime Hoshi
b552266afe
audio/internal/convert: enable to resample a float32 stream
...
Updates #2160
2024-07-14 17:51:24 +09:00
Pierre Curto
4de807cc44
all: fix typos ( #2558 )
...
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
2023-01-28 19:06:38 +09:00
Hajime Hoshi
1906262ef4
audio/internal/convert: refactoring
2022-10-23 01:14:30 +09:00
Nathan Levett
18123a6336
audio/internal/convert: add a lazy-load getter for cosTable
( #2404 )
...
Closes #2286
2022-10-23 00:24:51 +09:00
Hajime Hoshi
344d66c365
audio/internal/convert: remove Resampling.Close
...
This function is not used anywhere.
2022-08-21 23:48:33 +09:00
Hajime Hoshi
611cbad5d7
audio/internal/convert: Use byte instead of uint8
2021-10-31 19:34:52 +09:00
Hajime Hoshi
7422a3353a
audi/internal/conver: Fix ring-buffer-like slice usages
2021-09-12 17:06:36 +09:00
Hajime Hoshi
cba109ebee
audio/mp3: Bug fix: Accept non-io.Closer at Resampling
2019-04-01 00:04:57 +09:00
Hajime Hoshi
5c55df87d7
audio: Deprecate Size() and add Length() ( #466 )
2018-01-09 01:25:38 +09:00
Hajime Hoshi
11a1e6ec39
audio/internal/convert: Adjust window size again (confirmed this worked well on iPhone 6)
2018-01-06 01:49:55 +09:00
Hajime Hoshi
5b2dbf6036
audio/internal/convert: Adjust resamplingBufferSize again
2018-01-06 01:46:54 +09:00
Hajime Hoshi
ab70f6fc58
audio/internal/convert: Much faster sine/cosine functions
2018-01-06 00:15:07 +09:00
Hajime Hoshi
005d18ceff
audio/internal/convert: Use int64 (now it is fast enough on browsers?)
2018-01-05 20:03:17 +09:00
Hajime Hoshi
c020101afc
audio/internal/convert: Use cosine table
2018-01-05 19:40:12 +09:00
Hajime Hoshi
2884fb7070
audio/internal/convert: Fix algorithm
2018-01-05 18:21:14 +09:00
Hajime Hoshi
de1a22d9f3
audio/internal/convert: Bug fix: remove unneeded import
2017-12-31 00:15:36 +09:00
Hajime Hoshi
03942292f5
audio/internal/convert: Change the window smaller for performance
...
On iOS, resapling performance was not good.
2017-12-31 00:14:52 +09:00
Hajime Hoshi
e2a026138a
audio/internal/convert: Use float64 for positions
2017-12-27 18:55:17 +09:00
Hajime Hoshi
6d6504085c
audio/internal/convert: Rename members
2017-12-27 18:05:55 +09:00
Hajime Hoshi
b4e3e9375c
audio: Use samller window for resampling on browsers
2017-09-29 02:05:14 +09:00
Hajime Hoshi
db902dbbee
audio: Bug fix: stream size must be multiple of 4 ( #384 )
2017-07-12 00:51:36 +09:00
Hajime Hoshi
1828830b4a
audio/internal/convert/resampling: Better boundary check
2017-07-12 00:40:15 +09:00
Hajime Hoshi
d78a534a0b
audio/internal/convert: Bug fix: invalid size comparison
2017-07-09 15:29:56 +09:00
Hajime Hoshi
e3176f6693
audio/internal/convert: Optimization for seeking
2017-06-26 02:18:11 +09:00
Hajime Hoshi
5bdcd8825c
Rename audio/internal/resampling -> audio/internal/convert
2017-01-15 22:37:59 +09:00