@@ -170,7 +170,11 @@ struct SoundChannel
170170
171171struct MusicPlayerInfo ;
172172
173+ #if __STDC_VERSION__ < 202311L
173174typedef void (* MPlayFunc )();
175+ #else
176+ typedef void (* MPlayFunc )(...);
177+ #endif
174178typedef void (* PlyNoteFunc )(u32 , struct MusicPlayerInfo * , struct MusicPlayerTrack * );
175179typedef void (* CgbSoundFunc )(void );
176180typedef void (* CgbOscOffFunc )(u8 );
@@ -226,38 +230,6 @@ struct SongHeader
226230 u8 * part [1 ];
227231};
228232
229- struct PokemonCrySong
230- {
231- u8 trackCount ;
232- u8 blockCount ;
233- u8 priority ;
234- u8 reverb ;
235- struct ToneData * tone ;
236- u8 * part [2 ];
237- u8 gap ;
238- u8 part0 ; // 0x11
239- u8 tuneValue ; // 0x12
240- u8 gotoCmd ; // 0x13
241- u32 gotoTarget ; // 0x14
242- u8 part1 ; // 0x18
243- u8 tuneValue2 ; // 0x19
244- u8 cont [2 ]; // 0x1A
245- u8 volCmd ; // 0x1C
246- u8 volumeValue ; // 0x1D
247- u8 unkCmd0D [2 ]; // 0x1E
248- u32 unkCmd0DParam ; // 0x20
249- u8 xreleCmd [2 ]; // 0x24
250- u8 releaseValue ; // 0x26
251- u8 panCmd ;
252- u8 panValue ; // 0x28
253- u8 tieCmd ; // 0x29
254- u8 tieKeyValue ; // 0x2A
255- u8 tieVelocityValue ; // 0x2B
256- u8 unkCmd0C [2 ]; // 0x2C
257- u16 unkCmd0CParam ; // 0x2E
258- u8 end [2 ]; // 0x30
259- };
260-
261233#define MPT_FLG_VOLSET 0x01
262234#define MPT_FLG_VOLCHG 0x03
263235#define MPT_FLG_PITSET 0x04
@@ -365,17 +337,6 @@ extern const struct Song gSongTable[];
365337
366338extern u8 gMPlayMemAccArea [];
367339
368- //u8 gPokemonCrySong[52];
369- //u8 gPokemonCrySongs[52 * MAX_POKEMON_CRIES];
370-
371- #define MAX_POKEMON_CRIES 2
372-
373- extern struct PokemonCrySong gPokemonCrySong ;
374- extern struct PokemonCrySong gPokemonCrySongs [];
375-
376- extern struct MusicPlayerInfo gPokemonCryMusicPlayers [];
377- extern struct MusicPlayerTrack gPokemonCryTracks [];
378-
379340extern char SoundMainRAM [];
380341
381342extern MPlayFunc gMPlayJumpTable [];
@@ -393,10 +354,6 @@ extern const u8 gCgbScaleTable[];
393354extern const s16 gCgbFreqTable [];
394355extern const u8 gNoiseTable [];
395356
396- extern const struct PokemonCrySong gPokemonCrySongTemplate ;
397-
398- extern const struct ToneData voicegroup_pokemon_cry ;
399-
400357extern char gNumMusicPlayers [];
401358extern char gMaxLines [];
402359
@@ -435,18 +392,6 @@ void ClearModM(struct MusicPlayerTrack *track);
435392void m4aMPlayModDepthSet (struct MusicPlayerInfo * mplayInfo , u16 trackBits , u8 modDepth );
436393void m4aMPlayLFOSpeedSet (struct MusicPlayerInfo * mplayInfo , u16 trackBits , u8 lfoSpeed );
437394
438- struct MusicPlayerInfo * SetPokemonCryTone (struct ToneData * tone );
439- void SetPokemonCryVolume (u8 val );
440- void SetPokemonCryPanpot (s8 val );
441- void SetPokemonCryPitch (s16 val );
442- void SetPokemonCryLength (u16 val );
443- void SetPokemonCryRelease (u8 val );
444- void SetPokemonCryProgress (u32 val );
445- int IsPokemonCryPlaying (struct MusicPlayerInfo * mplayInfo );
446- void SetPokemonCryChorus (s8 val );
447- void SetPokemonCryStereo (u32 val );
448- void SetPokemonCryPriority (u8 val );
449-
450395// sound command handler functions
451396void ply_fine (struct MusicPlayerInfo * , struct MusicPlayerTrack * );
452397void ply_goto (struct MusicPlayerInfo * , struct MusicPlayerTrack * );
0 commit comments