Skip to content

Commit

Permalink
[manager] issue #199: fix the glitchy outputt issue caused by oboe bu…
Browse files Browse the repository at this point in the history
…ffer size.

This seems to fix the biggest audio glitch issues generally seen on
androidaudioplugin-manager app.

It does not fix the issue that reopening the stream results in non-exclusive
mode yet.
  • Loading branch information
atsushieno committed May 8, 2024
1 parent 2e9a8b1 commit 36e21e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class PluginDetailsScope private constructor(val pluginInfo: PluginInformation,
val sampleRate = audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE).toInt()
// It is for the audio processor's callback
// FIXME: make them configurable?
val frames = 1024 //audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER).toInt()
val frames = audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER).toInt()
val channelCount = 2
PluginPlayer.create(sampleRate, frames, channelCount).apply {
setPlugin(instance!!)
Expand Down

0 comments on commit 36e21e6

Please sign in to comment.