Commit graph

365 commits

Author SHA1 Message Date
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
frazar
ad97682aec
Fix grammar 2018-04-21 09:39:10 +02:00
Francesco Zardi
c14650d6d5 Publish 0.7.0 2018-04-19 11:38:00 +02:00
Francesco Zardi
6a8c71bdb2 Run cargo fmt 2018-04-19 10:03:48 +02:00
Pierre Krieger
8d2209be8c
Merge pull request #162 from frazar/master
Update cpal dependency to 0.8
2018-04-19 09:46:19 +02:00
Francesco Zardi
255db6aa71 Use the default_output_format() from cpal to choose the best output format 2018-04-19 08:59:27 +02:00
Francesco Zardi
b85626b3fb Fix the value of the silenced output for the u16 case (i.e. half of the maximum allowed value) 2018-04-19 08:59:27 +02:00
Francesco Zardi
fb234e3ebb Bump cpal version to 0.8 2018-04-19 08:59:27 +02:00
Francesco Zardi
30d601c3cd Rename 'new_stream()' to 'new_output_stream()' 2018-04-19 08:59:27 +02:00
Francesco Zardi
5641ab56fa Remove 'mut' keyboard from the buffer argument of audio_callback() 2018-04-19 08:59:27 +02:00
Francesco Zardi
c554c8e1f8 Handle the case in which an StreamData::Input is passed as a buffer to audio_callback() 2018-04-19 08:59:27 +02:00
Francesco Zardi
457c8a5011 Fix typo 2018-04-19 08:59:27 +02:00
Francesco Zardi
95703113ba Rename 'endpoint' to 'device' 2018-04-19 08:59:27 +02:00
Francesco Zardi
5f42197c77 Fix typo 2018-04-19 08:59:27 +02:00
Francesco Zardi
0a90b31380 Rename the play() method of EventLoop to play_stream() 2018-04-19 08:59:27 +02:00
Francesco Zardi
96d4d539b3 Rename 'voice' to 'stream' 2018-04-19 08:59:27 +02:00
Francesco Zardi
f3b1fc915e Change the signature of audio_callback() to accept a StreamData enum instead of a UnknownTypeOutputBuffer 2018-04-19 08:59:27 +02:00
Francesco Zardi
9d4d9fdcac Rename voice_id to stream_id 2018-04-19 08:59:27 +02:00
Francesco Zardi
5d62f69223 Rename VoiceId to StreamId 2018-04-19 08:59:27 +02:00
Francesco Zardi
ebceebb760 Rename 'endpoints' to devices' 2018-04-19 08:59:27 +02:00
Francesco Zardi
cde47ab970 Rename default_endpoint() to, default_output_device(), reexport default_input_device() 2018-04-19 08:59:27 +02:00