summaryrefslogtreecommitdiff
path: root/src/music
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2018-04-29 14:12:23 +0200
committerPatric Stout <truebrain@openttd.org>2018-04-29 15:32:16 +0200
commit85adde74858161240860ed9e4bf67f9be838de45 (patch)
treec49c092551d1b9070afe61447c412b9f0f107a11 /src/music
parent8d8b9a026a5915c2bf4591b74d79dfa1dcf791d8 (diff)
downloadopenttd-85adde74858161240860ed9e4bf67f9be838de45.tar.xz
Remove: PSP support
Diffstat (limited to 'src/music')
-rw-r--r--src/music/libtimidity.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/music/libtimidity.cpp b/src/music/libtimidity.cpp
index 1cb2adc0f..93284bd83 100644
--- a/src/music/libtimidity.cpp
+++ b/src/music/libtimidity.cpp
@@ -22,9 +22,6 @@
#include <sys/stat.h>
#include <errno.h>
#include <timidity.h>
-#if defined(PSP)
-#include <pspaudiolib.h>
-#endif /* PSP */
#include "../safeguards.h"
@@ -44,16 +41,6 @@ static struct {
uint32 song_position;
} _midi; ///< Metadata about the midi we're playing.
-#if defined(PSP)
-static void AudioOutCallback(void *buf, unsigned int _reqn, void *userdata)
-{
- memset(buf, 0, _reqn * PSP_NUM_AUDIO_CHANNELS);
- if (_midi.status == MIDI_PLAYING) {
- mid_song_read_wave(_midi.song, buf, _reqn * PSP_NUM_AUDIO_CHANNELS);
- }
-}
-#endif /* PSP */
-
/** Factory for the libtimidity driver. */
static FMusicDriver_LibTimidity iFMusicDriver_LibTimidity;
@@ -75,17 +62,7 @@ const char *MusicDriver_LibTimidity::Start(const char * const *param)
_midi.options.rate = 44100;
_midi.options.format = MID_AUDIO_S16LSB;
_midi.options.channels = 2;
-#if defined(PSP)
- _midi.options.buffer_size = PSP_NUM_AUDIO_SAMPLES;
-#else
_midi.options.buffer_size = _midi.options.rate;
-#endif
-
-#if defined(PSP)
- pspAudioInit();
- pspAudioSetChannelCallback(_midi.options.channels, &AudioOutCallback, NULL);
- pspAudioSetVolume(_midi.options.channels, PSP_VOLUME_MAX, PSP_VOLUME_MAX);
-#endif /* PSP */
return NULL;
}