mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-31 18:06:15 +02:00
configurable volume for OpenSL player
This commit is contained in:
parent
0f90f05e9d
commit
abc1488cd3
5 changed files with 32 additions and 22 deletions
|
@ -98,6 +98,8 @@ void OpenslPlayer::playerCallback(SLAndroidSimpleBufferQueueItf bq)
|
|||
memset(buffer[curBuffer], 0, buff_size);
|
||||
}
|
||||
|
||||
adjustVolume(buffer[curBuffer], frames_);
|
||||
|
||||
while (active_)
|
||||
{
|
||||
SLresult result = (*bq)->Enqueue(bq, buffer[curBuffer], buff_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue