Commit graph

53 commits

Author SHA1 Message Date
Jordan Eldredge
be22396af2 Provide default value for balance 2019-02-26 07:32:48 -08:00
Jordan Eldredge
182b4d0024 Allow consumers to initialize StereoBlanceNode value a la StereoPannerNode 2019-02-26 07:23:10 -08:00
Jordan Eldredge
522609fa5e Allow SteroBalanceNode to accept a string 2019-02-26 07:23:10 -08:00
Jordan Eldredge
4fd802f96e
Go back to using two gains for balance (#725)
SteroPannerNode handled mono files correctly, but apparently panning is not the same as balance.

Eventually I found a work around [here](https://github.com/WebAudio/web-audio-api/issues/975#issue-177242377). The idea is to use a dummy GainNode before the channel splitter to handle the up-mixing before the split is applied.

Tested a mono file as well as left/right balance on Chrome, Firefox, and Safari on Mac desktop.
2019-01-25 04:57:49 -08:00
Jordan Eldredge
38bd76f3d7 Make preamp a bit... more 2019-01-06 14:45:54 -08:00
Jordan Eldredge
2252c8e944 Improve preamp handling
Setting the preamp to the mid point should have no effect.
2019-01-06 14:34:58 -08:00
Jordan Eldredge
b16fb3a2ae Move file specific media info to the track
Fixes #712
2018-12-29 16:06:51 -08:00
Jordan Eldredge
5d6bf7a249
Use a legit polyfill (#711) 2018-12-28 15:36:56 -08:00
Jordan Eldredge
196f558375 Use StereoPannerNode where avaliable
Fixes #710
2018-12-28 14:01:00 -08:00
Jordan Eldredge
b4856c183d Revert "Ues Stereo Panner. Fixes #710"
This reverts commit fb828aca22.
2018-12-27 22:23:03 -08:00
Jordan Eldredge
fb828aca22 Ues Stereo Panner. Fixes #710 2018-12-27 22:09:40 -08:00
Jordan Eldredge
de978d92b3 Stop playing when disposed 2018-12-22 12:53:24 -08:00
Jordan Eldredge
ca7504b8e1 Start disposing some stuff 2018-12-14 17:03:26 -08:00
Jordan Eldredge
edc5c7890c Type check media 2018-09-17 17:04:05 -07:00
Jordan Eldredge
7c2a01dc5c Type ElementSource 2018-09-17 17:04:05 -07:00
Jordan Eldredge
de95b33642 Use constants for media status 2018-08-10 19:25:48 -07:00
Jordan Eldredge
3b9e48ef80 Add note about seekable 2018-07-26 20:54:37 -07:00
jberg
4b7560dda0 update frequency bars and add falling peaks (#616)
* update frequency bars

* add falling peak bars

* tweak bar math to drop exponentially

* plot frequencies in logspace instead of linearly

* use default audio analysis settings

* plot frequencies by octave
2018-07-24 22:10:11 -07:00
Jordan Eldredge
52d1d2af93 Tune EQ analyser node. Fixes #613 2018-07-07 12:47:41 -07:00
Jordan Eldredge
a7a5ef5e91 Upgrade prettier 2018-05-28 15:56:18 -07:00
Jordan Eldredge
257dadfecf Address/remove a bunch of TODOs 2018-05-23 20:14:06 +01:00
Jordan Eldredge
3d85d194c5 Lift playlist 2018-05-23 20:14:06 +01:00
Jordan Eldredge
353d1fd444 Remove usunused import 2018-05-03 07:26:50 -07:00
Jordan Eldredge
d00031054d Remove unused abstractions 2018-05-03 07:10:16 -07:00
Jordan Eldredge
92c571c646 Disable channel checking since it breaks Safari
https://github.com/captbaritone/webamp/issues/551
2018-05-03 07:10:16 -07:00
Jordan Eldredge
9cbef0cedc Document infinite duration bug better 2018-04-14 11:44:23 -07:00
Jordan Eldredge
ddc5fb74cb Use emitter abstraction for media class 2018-04-14 11:44:23 -07:00
Jordan Eldredge
d2bfe64a44 Fix bug where we were continually destroying analysers that had already been destroyed 2018-04-10 20:24:42 -07:00
Jordan Eldredge
d5debf882c Try to do a better job cleaning up channel detection audio nodes 2018-04-09 07:01:02 -07:00
Jordan Eldredge
82506df2dd Handle infinity for now 2018-04-08 20:00:54 -07:00
Jordan Eldredge
373d613e19 Un-revert, add duration to llama track
It seems the bug I saw (the demo track had an infinite duration), was not
a bug in my code, but a bug/change in the latest version of mobile
Safari.

Undoing the revert, since it doesn't really help, and adding back the
channel detection code.
2018-04-08 19:13:58 -07:00
Jordan Eldredge
5b39cb24a3 Revert to known state. Shit's broken 2018-04-08 15:08:10 -07:00
Jordan Eldredge
a1d73c2f34 Handle mono audio files 2018-04-08 14:48:28 -07:00
Jordan Eldredge
da792c16b9 Add onClose method 2018-04-03 06:50:06 -07:00
Jordan Eldredge
6e1d57033e Remove vestigle loop methods 2018-03-19 22:50:24 -07:00
Jordan Eldredge
a5a76f554c Recover from errors in media sources 2018-03-19 22:45:29 -07:00
Jordan Eldredge
4423bf2418 Add todo 2018-03-10 16:02:49 -08:00
Jordan Eldredge
95221727d7 Ensure audio is resumed by user interaction. 2018-02-21 19:35:32 -08:00
Jordan Eldredge
e52ddd63c4 Exclude Raven from the UMD bundle 2018-02-19 20:18:55 -08:00
Jordan Eldredge
512f123cfa Fix ios 2018-02-11 13:55:55 -08:00
Jordan Eldredge
b98a9bbb45 Get better audio error info 2018-02-07 21:41:06 -08:00
Jordan Eldredge
56f4a32792 Spelling 2018-02-07 21:09:54 -08:00
Jordan Eldredge
49344f1639 Add some additional exception capturing 2018-02-07 20:23:52 -08:00
Jordan Eldredge
00274e9483 Standardize on elementSource 2018-01-21 21:44:34 -08:00
Jordan Eldredge
3484d23e13 FUCK! This took me far too long to figure out. 2018-01-17 19:00:36 -08:00
Jordan Eldredge
f6bea6d8ef Don't use global fileInput 2018-01-14 14:36:21 -08:00
Jordan Eldredge
d2ab5acd3f Remove unused method 2018-01-03 19:52:00 -08:00
Jordan Eldredge
3eccf2b927 Expose elementSource behind a feature flag 2018-01-03 19:52:00 -08:00
Jordan Eldredge
c7e626de9c Enable multiple tracks 2018-01-03 19:52:00 -08:00
Jordan Eldredge
7bd6f32206 Standardize on URLs media
This will make things easier as we start getting the playlist working
2017-11-19 11:44:46 -08:00