mirror of
https://github.com/onyx-and-iris/vmr-http.git
synced 2026-04-06 18:09:11 +00:00
initial commit
This commit is contained in:
3
src/vmr_http/web/bus.py
Normal file
3
src/vmr_http/web/bus.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from fastapi import APIRouter
|
||||
|
||||
router = APIRouter()
|
||||
10
src/vmr_http/web/strip.py
Normal file
10
src/vmr_http/web/strip.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from fastapi import APIRouter, Depends
|
||||
|
||||
from vmr_http.dependencies import get_voicemeeter_client
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get("/{index}/gain")
|
||||
async def get_gain(index: int, voicemeeter=Depends(get_voicemeeter_client)):
|
||||
return {"gain": voicemeeter.strip[index].gain}
|
||||
Reference in New Issue
Block a user