karaoke-dev / osu-GameBoy

1 stars 1 forks source link

Audio support #3

Open andy840119 opened 5 years ago

andy840119 commented 5 years ago

Research how audio support in osu-framework 🤔 🤔 🤔

andy840119 commented 5 years ago

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

andy840119 commented 5 years ago

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

andy840119 commented 5 years ago

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

andy840119 commented 4 years ago

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

Game4all commented 4 years ago

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 commented 4 years ago

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

andy840119 commented 3 years ago

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

Game4all commented 3 years ago

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).