forked from len0rd/rockbox
Implement pcm_set_frequency in the sim. Update Doom plugin to have sound in the simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11916 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ccfa883d78
commit
5efed097fd
2 changed files with 52 additions and 33 deletions
|
@ -475,17 +475,13 @@ void I_SubmitSound(void)
|
|||
if (nosfxparm)
|
||||
return;
|
||||
|
||||
#if !defined(SIMULATOR)
|
||||
rb->pcm_play_data(&get_more, NULL, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
void I_ShutdownSound(void)
|
||||
{
|
||||
#if !defined(SIMULATOR)
|
||||
rb->pcm_play_stop();
|
||||
rb->pcm_set_frequency(44100); // 44100
|
||||
#endif
|
||||
}
|
||||
|
||||
void I_InitSound()
|
||||
|
@ -494,10 +490,8 @@ void I_InitSound()
|
|||
|
||||
// Initialize external data (all sounds) at start, keep static.
|
||||
printf( "I_InitSound: ");
|
||||
#if !defined(SIMULATOR)
|
||||
rb->pcm_play_stop();
|
||||
rb->pcm_set_frequency(SAMPLERATE);
|
||||
#endif
|
||||
|
||||
vol_lookup=malloc(128*256*sizeof(int));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue