-
Notifications
You must be signed in to change notification settings - Fork 0
Need Windows/Linux audio support ASAP :) #6
Comments
One of the core issues is the fact that certain platforms won't be able to support the correct sample format/sampling rate that different emulators require (for instance snes-apu, which requires a 32000hz sample rate). The emulators themselves could implement their own resampling, but I think this is the wrong approach, as I foresee it being a common issue. I also don't think the various cross-platform audio abstraction API's should try to do this, as they should be concerned with bridging the platform gap, and nothing else. This library, however, sits right in the middle, and should bridge the gap between the emulators' needs and the capabilities of the current platform - so I think this is the perfect place to support resampling internally if necessary. As far as the actual resampling itself goes, it looks like rodio exposes a sources/sinks-based API that includes a resampler, so that's worth looking into for sure. I haven't dug into the code to see what kinds of resampling modes it actually supports, and that's worth following up on. |
Hi! Two points:
|
I think you're referring to this crate (emu) being a dev-dependency for https://github.com/emu-rs/snes-apu ? My current thoughts are that this set of libs isn't really very well thought-out at the moment, and I'm not really working on it, so I'd rather consider changing snes-apu to using |
@yupferris that approach sounds good with me :) |
Cool, I'll look into removing the dependency on this crate in the next couple days then. In the meantime though, as I've said before, |
@yupferris I see, thanks :) |
I've started looking at how to add this, which led me to CPAL. I started playing with it, and ran into some problems; refer to the discussion here.
The text was updated successfully, but these errors were encountered: