Commit graph

386 commits

Author SHA1 Message Date
Pierre Krieger
ddc5bec344 Update the examples to use the new API 2015-10-16 16:37:48 +02:00
Pierre Krieger
c67362a999 Dispatch source.rs between various submodules 2015-10-16 16:13:24 +02:00
Pierre Krieger
1f3eefd863 Add repeat_infinite to Source 2015-10-16 16:08:52 +02:00
Pierre Krieger
21900968b5 Fix the beep example 2015-10-16 15:40:30 +02:00
Pierre Krieger
188032f843 Remove the play function 2015-10-16 15:39:00 +02:00
Pierre Krieger
a23aeaa4ff Dropping the Sink now stops all sounds 2015-10-16 15:38:10 +02:00
Pierre Krieger
d786f79e02 Change get_remaining_duration_ms to get_min_remaining_duration 2015-10-16 15:30:04 +02:00
Pierre Krieger
e2fc982652 Duration more or less works again 2015-10-16 15:28:13 +02:00
Pierre Krieger
efc00ff834 Rename Handle to Sink and add methods 2015-10-16 15:14:56 +02:00
Pierre Krieger
dad2088c39 Allow adding other sounds behind existing sounds 2015-10-16 15:11:54 +02:00
Pierre Krieger
0d96bd3883 Remove mentions of ExactSizeIterator 2015-10-16 14:25:03 +02:00
Pierre Krieger
9ff58ca760 Revert previous commit 2015-10-16 14:23:34 +02:00
Pierre Krieger
85ee95d269 Ensure that get_current_frame_len never returns 0 2015-10-16 14:22:53 +02:00
Pierre Krieger
ce0165a0de Restore the vorbis decoder 2015-10-16 14:21:37 +02:00
Pierre Krieger
9d80295d5d Better duration handling 2015-10-16 14:02:44 +02:00
Pierre Krieger
d3052bc986 Add play() and make the decoder public 2015-10-16 13:43:23 +02:00
Pierre Krieger
5ab65b7a31 Hide the implementation of the decoder 2015-10-16 13:42:57 +02:00
Pierre Krieger
2e09c3494d Remove the Decoder trait and switch to the Source trait 2015-10-16 13:35:30 +02:00
Pierre Krieger
102ec8fd2c Add the Source trait and UniformSourceIterator 2015-10-16 13:11:37 +02:00
tomaka
22ea123af2 Remove warning about Rust version from README 2015-09-28 10:57:00 +02:00
tomaka
9eae0edb99 Merge pull request #35 from tomaka/min-rate
Use at least a quality of 44100
2015-09-27 19:24:35 +02:00
Pierre Krieger
4173ba5a08 Use at least a quality of 44100 2015-09-27 19:21:10 +02:00
Pierre Krieger
8d46180986 Publish 0.1.8 2015-09-27 14:55:44 +02:00
tomaka
04c356aeba Merge pull request #34 from tomaka/better-timing
Improve timing system again
2015-09-27 14:54:54 +02:00
Pierre Krieger
c20ff8aa99 Improve timing system again 2015-09-27 14:49:53 +02:00
tomaka
7dd34496b7 Merge pull request #33 from tomaka/better-format-choice
Restrict the format to 2 channels
2015-09-27 14:39:00 +02:00
Pierre Krieger
53143b5f02 Restrict the format to 2 channels 2015-09-27 14:31:23 +02:00
tomaka
d920872bb1 Merge pull request #31 from tomaka/engine-rework
Engine rework
2015-09-27 13:51:50 +02:00
Pierre Krieger
6932fb553d Add a small TODO 2015-09-27 13:49:12 +02:00
Pierre Krieger
5846d64240 Round up number of samples to next period 2015-09-27 13:47:07 +02:00
Pierre Krieger
5d639fa3c1 Filter formats with more than 7 channels 2015-09-27 13:33:03 +02:00
Pierre Krieger
ac3b7c964a Initialize each new voice with one period of 0s 2015-09-27 13:31:51 +02:00
Pierre Krieger
8503bc2f8a Fix period not being taken into account 2015-09-27 13:12:09 +02:00
Pierre Krieger
d3a554b146 Better format choice, part 2 2015-09-27 12:05:55 +02:00
Pierre Krieger
e765a088f1 Better choose the voice format 2015-09-27 11:57:55 +02:00
Pierre Krieger
010f80d082 Fix ALSA stuttering 2015-09-27 11:49:53 +02:00
Pierre Krieger
114509fc24 Fix loop to be more precise 2015-09-27 11:43:23 +02:00
Pierre Krieger
4806aebf61 Arc<Decoder> -> Box<Decoder> 2015-09-27 11:30:27 +02:00
Pierre Krieger
95b2f5a45e Fix the wav decoder 2015-09-27 10:50:11 +02:00
Pierre Krieger
0050b5b4ba Remove debug println 2015-09-27 10:43:46 +02:00
Pierre Krieger
112c8c94e5 Use a proper type for WAVE decoding instead of a Box 2015-09-27 10:41:46 +02:00
Pierre Krieger
ab59b0fc8b Publish 0.1.7 2015-09-27 10:28:45 +02:00
Pierre Krieger
007c0d4634 Fix attempt for the compilation failure on stable/beta 2015-09-27 10:28:13 +02:00
Pierre Krieger
f339184d75 Fix all warnings 2015-09-27 10:24:41 +02:00
Pierre Krieger
e8d7a42db4 Correctly handle the voices' formats 2015-09-27 10:22:39 +02:00
Pierre Krieger
4671ed2678 Use a constant for the engine loop duration 2015-09-27 10:10:33 +02:00
Pierre Krieger
bc6f78de4c Handle the volume in the engine core instead of the decoders 2015-09-27 10:04:32 +02:00
Pierre Krieger
92a4567f08 Start using one voice per endpoint and mixing samples manually 2015-09-27 09:56:29 +02:00
Pierre Krieger
a6b5197a59 Use loops of 17ms 2015-09-27 08:58:40 +02:00
tomaka
a5c0d6673c Merge pull request #29 from tomaka/fix-amplify-u16
Fix amplify for u16s
2015-09-24 17:38:14 +02:00