Skip to content

Commit 36e21e6

Browse files
committed
[manager] issue #199: fix the glitchy outputt issue caused by oboe buffer 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.
1 parent 2e9a8b1 commit 36e21e6

File tree

1 file changed

+1
-1
lines changed
  • androidaudioplugin-ui-compose-app/src/main/java/org/androidaudioplugin/ui/compose/app

1 file changed

+1
-1
lines changed

androidaudioplugin-ui-compose-app/src/main/java/org/androidaudioplugin/ui/compose/app/PluginManagerScope.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class PluginDetailsScope private constructor(val pluginInfo: PluginInformation,
5656
val sampleRate = audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE).toInt()
5757
// It is for the audio processor's callback
5858
// FIXME: make them configurable?
59-
val frames = 1024 //audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER).toInt()
59+
val frames = audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER).toInt()
6060
val channelCount = 2
6161
PluginPlayer.create(sampleRate, frames, channelCount).apply {
6262
setPlugin(instance!!)

0 commit comments

Comments
 (0)