Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio support #3

Open
andy840119 opened this issue Jul 1, 2019 · 8 comments
Open

Audio support #3

andy840119 opened this issue Jul 1, 2019 · 8 comments

Comments

@andy840119
Copy link
Member

Research how audio support in osu-framework 🤔 🤔 🤔

@andy840119
Copy link
Member Author

Emux default is using NAudio, but osu-Framework is using ManagedBass.

@andy840119
Copy link
Member Author

andy840119 commented Jul 1, 2019

Make a object like TrackBass and inherit Track
And wrapped into DrawableTrack

@andy840119
Copy link
Member Author

andy840119 commented Jul 2, 2019

Tried manty times, Bass.StreamPutData() doesn't work(format issue)
.
Maybe use Procedure instead ?

@andy840119
Copy link
Member Author

andy840119 commented Jun 1, 2020

Work until know how ManagedBass.GetSampleData() works.
Or wait until this ruleset Implemented?
.
Maybe need to spend some time to clone this project.

@Game4all
Copy link

You may want to use a custom BASS stream with a custom data procedure to pull audio data from a ring buffer which is buffered directy by the IAudioChannelOutput, as BASS PUSH stream don't seem to accept PCM data.

@andy840119
Copy link
Member Author

Yes
It seems like support exist format like .mp3 🤔🤔🤔
Have no idea now

@andy840119
Copy link
Member Author

https://github.com/Game4all/gamebosu/tree/master/osu.Game.Rulesets.Gamebosu/Audio
[ToInternal]May try this way and make a simple fix?

@Game4all
Copy link

Game4all commented Jan 8, 2021

Code is working but sound output is distorted / broken (and can't seem to recall why it happens, probably something that has to do with the sample rate).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants