Sample rate is always 22050. Verified by trying various files in the game.
Unified · Split
| @@ -83,7 +83,7 @@ static int alp_read_header(AVFormatContext *s) · 82 unmodified lines | |||
| 83 | 83 | ||
| 84 | if (hdr.header_size == 8) { | 84 | if (hdr.header_size == 8) { |
| 85 | /* .TUN music file */ | 85 | /* .TUN music file */ |
| 86 | hdr.sample_rate = 11025 * hdr.num_channels; | 86 | hdr.sample_rate = 22050; |
| 87 | } else { | 87 | } else { |
| 88 | /* .PCM sound file */ | 88 | /* .PCM sound file */ |
| 89 | hdr.sample_rate = avio_rl32(s->pb); | 89 | hdr.sample_rate = avio_rl32(s->pb); |