Skip to content

Commit

Permalink
Update to 0.2 (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
harudagondi committed Sep 4, 2022
1 parent 484248d commit 646669f
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 8 deletions.
41 changes: 36 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,47 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.0] - 2022-09-04

### Added
- Support for mono.
- Support for `oddio::Sine` and `oddio::SpatialScene`.

- A bunch of newtypes frames that implement `TypeUuid` and `Frame`:
- `Mono`, for mono output.
- `Stereo` for stereo output.
- `FromFrame` trait
- Has a `from_frame` method, which converts predefined `oddio::Frame` to the newtypes.
- A bunch of builtin `oddio` types
- `Constant`
- `Cycle`
- `Stream`
- `Gain` example, which showcases controlling signals.

### Changed
- `Audio::play` now returns `AudioHandle` and `AudioSink`.
- All public facing structs now need `F` to be specified, where `F` is either `Mono` or `Stereo`.

- `Audio::play` now only returns `Handle<AudioSink<Source>>`.
- `AudioApp::add_audio_source` now requires a `const N: usize` and `F` generics.
- `N` is the number of channels.
- `F` is a type that implements `oddio::Frame` and `FromFrame<[Sample; N]>`.
- `F` can be implied.
- `play_queued_audio` now requires a `const N: usize` and `F` generics, similar to previous.
- `Audio` requires `F` generic that implements `oddio::Frame`.
- `AudioSource` requires `F` generic that implements `oddio::Frame`.
- `AudioSource` now accepts `Arc<Frames<F>>` instead of `Arc<Frames<Stereo>>`.
- `AudioSource::Signal` now returns `FramesSignal<F>`.
- `AudioOutput` requires `const N: usize` and `F: Frame + FromFrame<[Sample; N]>` generics.
- Type alias for `Stereo` is now a newtype struct.
- `AudioSink` now derefs to `ManuallyDrop<Handle<Stop<<Source as ToSignal>::Signal>>>`.
- There is now no `SplitSignal` in between `Stop` and `Source`.

### Removed

- `AudioHandle`. Use `AudioSink` to control the playing audio.
- `AudioHandles`. Use `AudioSinks`.
- `SpatialScene` settings.

## [0.1.0] - 2022-07-01
- Released `bevy_oddio` 0.1 🎉

[Unreleased]: https://github.com/harudagondi/bevy_oddio/compare/v0.1.0..HEAD
[Unreleased]: https://github.com/harudagondi/bevy_oddio/compare/v0.2.0..HEAD
[0.2.0]: https://github.com/harudagondi/bevy_oddio/compare/v0.1.0..v0.2.0
[0.1.0]: https://github.com/harudagondi/bevy_oddio/releases/tag/v0.1.0
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "bevy_oddio"
authors = ["Gio Genre De Asis"]
version = "0.1.0"
version = "0.2.0"
edition = "2021"
description = "A third party Bevy plugin that integrates `oddio` into Bevy."
homepage = "https://github.com/harudagondi/bevy_oddio"
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Bevy Oddio

[![Bevy tracking](https://img.shields.io/badge/Bevy%20tracking-main-lightblue)](https://github.com/bevyengine/bevy/blob/main/docs/plugins_guidelines.md#main-branch-tracking)
[![Bevy tracking](https://img.shields.io/badge/Bevy%20tracking-main-lightblue)](https://github.com/bevyengine/bevy/blob/main/docs/plugins_guidelines.md#main-branch-tracking) ![Crates.io](https://img.shields.io/crates/d/bevy_oddio) ![Crates.io](https://img.shields.io/crates/l/bevy_oddio) ![Crates.io](https://img.shields.io/crates/v/bevy_oddio) ![docs.rs](https://img.shields.io/docsrs/bevy_oddio)

A third party Bevy plugin that integrates [`oddio`] into [Bevy].

Expand Down Expand Up @@ -31,7 +31,8 @@ fn play_background_audio(asset_server: Res<AssetServer>, mut audio: ResMut<Audio

| `bevy_oddio` | `bevy` |
| ------------- | ------ |
| main | main |
| bevy_main | main |
| 0.2.0 | 0.8 |
| 0.1.0 | 0.8 |

## License
Expand Down

0 comments on commit 646669f

Please sign in to comment.