From cb3da5bd9850583f732bb1afe903cb96ed568c0c Mon Sep 17 00:00:00 2001 From: Anh302kay Date: Mon, 29 Jan 2024 22:16:11 +1100 Subject: [PATCH] Added ndspChnGetFormat --- libctru/source/ndsp/ndsp-channel.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libctru/source/ndsp/ndsp-channel.c b/libctru/source/ndsp/ndsp-channel.c index c95a8c3f0..bd5699d52 100644 --- a/libctru/source/ndsp/ndsp-channel.c +++ b/libctru/source/ndsp/ndsp-channel.c @@ -100,6 +100,11 @@ void ndspChnSetFormat(int id, u16 format) ndspChn[id].format = format; } +u16 ndspChnGetFormat(int id) +{ + return ndspChn[id].format; +} + bool ndspChnIsPaused(int id) { return ndspChn[id].paused;