void AUDIO_ResetStreamSampleCnt(void) missing

support for the powerpc toolchain
Post Reply
nebiun
Posts: 65
Joined: Sat Dec 28, 2013 2:42 pm

void AUDIO_ResetStreamSampleCnt(void) missing

Post by nebiun » Mon Jan 16, 2023 6:32 pm

Hi,
the routine void AUDIO_ResetStreamSampleCnt(void); is documented but is missing in libogc for wii.

$ grep -r AUDIO_ResetStreamSampleCnt /c/devkitPro/
/c/devkitPro/libogc/include/ogc/audio.h: * \fn void AUDIO_ResetStreamSampleCnt(void)
/c/devkitPro/libogc/include/ogc/audio.h:void AUDIO_ResetStreamSampleCnt(void);

$ nm -a /c/devkitPro/libogc/lib/cube/libogc.a | grep AUDIO_ResetStreamSampleCnt
00000000 t .text.AUDIO_ResetStreamSampleCnt
00000000 T AUDIO_ResetStreamSampleCnt

$ nm -a /c/devkitPro/libogc/lib/wii/libogc.a | grep AUDIO_ResetStreamSampleCnt

It is correct?
Thankyou

nebiun
Posts: 65
Joined: Sat Dec 28, 2013 2:42 pm

Re: void AUDIO_ResetStreamSampleCnt(void) missing

Post by nebiun » Mon Jan 16, 2023 7:01 pm

Hi (again :D )
Seem to be that many subroutines in libogc/audio.c are enabled only when defined HW_DOL

void AUDIO_SetStreamVolLeft(u8 vol)
u8 AUDIO_GetStreamVolLeft(void)
void AUDIO_SetStreamVolRight(u8 vol)
u8 AUDIO_GetStreamVolRight(void)
void AUDIO_SetStreamSampleRate(u32 rate)
u32 AUDIO_GetStreamSampleRate(void)
void AUDIO_SetStreamTrigger(u32 cnt)
void AUDIO_ResetStreamSampleCnt(void)
void AUDIO_SetStreamPlayState(u32 state)
u32 AUDIO_GetStreamPlayState(void)

So these subroutines are available only for GCUBE?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests