From 0da8705527f03b4b08ff7fee4dd1b7f28df37905 Mon Sep 17 00:00:00 2001 From: Kayden Tran <77185387+Anh302kay@users.noreply.github.com> Date: Mon, 29 Jan 2024 23:04:08 +1100 Subject: [PATCH] Added ndspChnGetFormat (#538) --- 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 c95a8c3..bd5699d 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;