Remove 'not tested' messages

This commit is contained in:
kichikuou
2019-01-27 16:37:56 +09:00
parent 4f256c79df
commit 8c2d51d510
3 changed files with 4 additions and 6 deletions
-2
View File
@@ -203,7 +203,6 @@ int mus_pcm_mix(int noL, int noR, int loop) {
*/
int mus_pcm_stop(int msec) {
if (!prv.pcm_valid) return NG;
printf("%s not tested\n", __func__);
muspcm_fadeout(0, msec);
return OK;
@@ -227,7 +226,6 @@ int mus_pcm_load(int no) {
*/
int mus_pcm_get_playposition(int *pos) {
if (!prv.pcm_valid) return NG;
printf("%s not tested\n", __func__);
*pos = muspcm_getpos(0);
return OK;
+2 -2
View File
@@ -24,8 +24,8 @@
#ifndef __MUSIC_PCM_H__
#define __MUSIC_PCM_H__
extern int muspcm_init();
extern int muspcm_exit();
extern int muspcm_init(void);
extern int muspcm_exit(void);
extern int muspcm_load_no(int slot, int no);
extern int muspcm_load_mixlr(int slot, int noL, int noR);
extern int muspcm_start(int slot, int loop);
+2 -2
View File
@@ -134,7 +134,7 @@ static Mix_Chunk *pcm_mixlr(int noL, int noR) {
}
}
int muspcm_init() {
int muspcm_init(void) {
Mix_Init(MIX_INIT_MP3 | MIX_INIT_OGG);
if (Mix_OpenAudio(44100, AUDIO_S16LSB, 2, 4096) < 0)
return NG;
@@ -142,7 +142,7 @@ int muspcm_init() {
return OK;
}
int muspcm_exit() {
int muspcm_exit(void) {
Mix_CloseAudio();
Mix_Quit();
return OK;