Commit graph

435 commits

Author SHA1 Message Date
whentze
60eaa9a2f5 Add basic test for flac decoding 2019-05-15 03:16:01 +02:00
whentze
26c2ba50ac Add a correct implementation of total_duration to FlacDecoder. 2019-05-15 03:12:47 +02:00
Pierre Krieger
92a018bf53
Merge pull request #221 from willstott101/immediate_sink_parameters
Immediately apply a Sink's state to the next Source in it's Queue.
2019-04-19 17:34:53 +02:00
Will Stott
941fec3fe5 Add some tests to Sink 2019-04-02 20:42:09 +00:00
Will Stott
074368480e Fix potential overflow for every-sample periodic_access. 2019-04-02 20:31:37 +00:00
Will Stott
14be3f46c8 Add to Source.periodic_access docs. 2019-04-02 19:26:42 +00:00
Will Stott
011090034f Fix periodic test module
Add a simple test of periodic_access.
2019-04-02 18:58:45 +00:00
Will Stott
dba627a1b4 Periodic access on the first sample & accurate for multi-channel sources 2019-03-29 14:13:09 +00:00
Pierre Krieger
8dd11878ff
Merge pull request #220 from willstott101/sink_len
Add a len() method to Sink for some insight into the queue state.
2019-03-04 07:59:23 +01:00
Will Stott
f36411f6f5 Add a len() method to Sink for some insight into the queue state. 2019-03-01 12:14:30 +00:00
Pierre Krieger
25d3151917
Merge pull request #218 from mathstuf/cleanups
Cleanups
2019-01-28 20:19:06 +01:00
Pierre Krieger
cf2bcb0c6b
Merge pull request #213 from germangb/minimp3_bump
Bump minimp3 version
2019-01-28 20:18:23 +01:00
Pierre Krieger
a86dbc5852
Add inner accessors for more sources (#216) 2019-01-28 20:17:00 +01:00
Joe Clay
b02529712d Fix doc comment in Sink (#215) 2019-01-28 20:16:02 +01:00
Ben Boeckel
e61d14ba38 sources: remove excess constraints on structures 2019-01-28 08:49:32 -05:00
Ben Boeckel
b5d678a44b done: fix markup on doc comment 2019-01-28 08:49:32 -05:00
Ben Boeckel
404e77351b fadein: fix documentation 2019-01-28 08:49:32 -05:00
Ben Boeckel
e8ce0659a7 take: fix doc comment 2019-01-28 08:49:32 -05:00
Joe Clay
53a7d78cd8 Add inner accessors for more sources 2019-01-17 01:10:12 +00:00
german gomez
660f081c15
minimp3 version bump (fixes #212)
Signed-off-by: german gomez <germangb42@gmail.com>
2018-12-09 00:21:25 +01:00
german gomez
1e02d9022a
Bump minimp3 version
Signed-off-by: german gomez <germangb42@gmail.com>
2018-12-07 18:32:10 +01:00
Alex Butler
4bb832ba30 Remove exclusive borrow requirement in Sink, SpatialSink (#203)
The inner Mutex does not require this.
2018-11-16 11:18:07 +01:00
Nicola Larosa
6fd5288cc7 Fix ChannelVolume dropping input samples (#198) 2018-11-10 14:44:49 +01:00
Aaron Kofsky
d20a3c661e Fix reading WAV of different encodings. (#199)
* Read 32 bit float and 24 bit int encoded files correctly.

Before, we were assuming that all WAV files are encoded as 16 bit integers.
This is not true, WAVs can actually also be encoded as 32 bit floats and
24 bit integers. Hound returns `Err` when we attempt to read files as the
wrong encoding, which was getting `unwrap_or`'d to just zero. This explains
why the file would load but not play any sound. We fix this by first
checking for the appropriate encoding, and then converting to an i16. This
might cause some slight dither issues but hopefully it is quiet enough that
it doesn't matter.

Fixes #195.

* Add tests of reading wav files different encodings

* Use `.map()` instead of control flow & unwrapping.

This makes things slightly cleaner to read.
Also remove extraneous print statement.
2018-11-09 21:58:43 +01:00
thiolliere
a55cac78ae Fix channel volume None sample (#191) 2018-10-11 15:36:03 +01:00
Anton
4168dbc161 added .stop() to SpacialSink (#188) 2018-09-23 05:10:35 +02:00
est31
a82eba1abe Prepare the 0.8.1 release (#186) 2018-09-18 13:53:34 +02:00
Ben Boeckel
8bf1bf5851 typos: fix in buffer and source documentation (#180)
* typos: fix in buffer and source documentation

* sink: fix some formatting

* sink: refer to the sink in the pause API docs
2018-09-15 11:07:33 +02:00
Ben Boeckel
f0fc5124db static_buffer: add a source backed by static data (#183)
If samples are available as static data, this avoids having to
reallocate the data.
2018-09-15 11:07:12 +02:00
Ben Boeckel
2e005c8218 repeat: implement Clone (#182)
It seems the compiler is not deriving `Clone` automatically even though
it is just `Buffered` wrappers around the original data.
2018-09-15 11:06:42 +02:00
est31
fcd0edbdcc Finish the relicensing process (#178)
Closes #64
2018-08-28 11:56:39 +02:00
est31
9853088595 Require all new contributions to be MIT/Apache2 (#175) 2018-08-17 13:59:55 +02:00
est31
5f04ae5156 Update lewton to 0.9 (#174) 2018-08-16 19:39:49 +02:00
Pierre Krieger
3f8ec93ff0
Merge pull request #172 from est31/master
Update lewton to 0.8.0
2018-07-26 15:51:51 +02:00
est31
2a9f1feb73 Update lewton to 0.8.0 2018-07-26 11:16:22 +02:00
Pierre Krieger
ae21370019
Merge pull request #170 from Xaeroxe/release
Prepare 0.8 release
2018-06-22 17:39:39 +02:00
Jacob Kiesel
d839e53078 Prepare 0.8 release 2018-06-22 08:50:19 -06:00
Pierre Krieger
ebde38777b
Merge pull request #169 from AlexNav73/master
Bumped minimp3 version
2018-06-22 13:29:48 +02:00
Aliaksandr_Navitski
ac5d8b79f4 Bumped minimp3 version 2018-06-22 11:48:03 +03:00
Pierre Krieger
992b5d5c80
Merge pull request #168 from thiolliere/patch-1
fix dynamic mixer doc
2018-06-21 16:27:06 +02:00
thiolliere
2933c3c0b2
fix dynamic mixer doc 2018-06-20 19:32:57 +02:00
Pierre Krieger
8d51880638
Merge pull request #167 from barzamin/minimp3
Implement MP3 support via Minimp3
2018-06-16 20:01:20 +02:00
Pierre Krieger
5b67e5ffa4
Merge pull request #166 from lennartS/typo
Fix typo in rustdoc
2018-06-10 00:57:54 +02:00
Lennart Sauerbeck
43e161899d Fix typo in rustdoc 2018-06-09 20:57:02 +02:00
Erin Moon
05fbda87db examples: add music_mp3 example 2018-05-26 18:42:22 -05:00
Erin Moon
5c54078126 decoders: implement minimp3-based MP3 decoder
Closes #36.
2018-05-26 18:42:22 -05:00
Erin Moon
c5725b8a37 vorbis decoder: implement filetype check and fallthrough 2018-05-26 18:42:22 -05:00
Erin Moon
73e19bad29 cargo: add feature dependency on minimp3 2018-05-26 18:42:22 -05:00
Pierre Krieger
6ab1c2a6b9
Merge pull request #164 from frazar/master
Refactor code with `cargo fmt`
2018-04-21 11:10:28 +02:00
Pierre Krieger
a5ad6ffe3f
Merge pull request #163 from frazar/new_release
Publish 0.7.0
2018-04-21 11:09:59 +02:00