-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No Custom MP3 or OGG playback from music folder despite added dll files and correct naming #49
Comments
Have you tried this one? https://github.com/ayuanx/ogg-winmm it was working really good with wine. As long as the track numbers are not mix up it should work right? |
Hello and thanks a lot for your tip! Unfortunately, I just tested it and using the winmm wrapper from ayuanx doesn't work either. I have the proper ogg files named track02.ogg ... track60.ogg in a folder "music" and the ayuanx winmm.dll in the root folder but everything stays cd audio - free. I also tried yet another ogg-winmm fork that usually works on my system and that also didn't do the trick. No Lara voice, no background music. |
The only way at the moment to make ripped cd audio work for me is the default method of having an "audio" folder and the cd content inside of that in a single file cdaudio.mp3 alongside the additional cdaudio.dat. There is one version of the German CD audio dub floating around: https://steamcommunity.com/sharedfiles/filedetails/?id=377249769 which also works fine on my system at the moment. But the bitrate could be a bit higher for my taste (it's only 128). And ripping my original CD audio to a single mp3 file of higher bitrate, renaming it to cdaudio.mp3 and exchanging it with the mp3 from that download does sort of work, but the cdaudio.dat has quite different timecodes that don't fit my rip (the downloaded version starts with 5 second of silence while my mp3 file starts the audio immeditately on that single track, for instance). So I do hear the sounds from my own rip with the "audio" folder and the cdaudio.mp3/cdaudio.dat method, but they are all messed up (Lara voiceout start at the wrong point in the track and stop within the next audio track from the soundtrack and so on). Now I think it would work if I would edit the cdaudio.dat file according to my different OST track rip, but it looks like I would have to find out and manually edit the proper miliseconds for each single one of the 60 tracks. This seems a bit overcomplicated to me. If anyone knows how to make a single file rip that automatizes the creation of the cdaudio.dat file and which program to use to rip CD Audio in that way, I would be very glad to hear that. |
Yes look at how he/she hacked it |
Thanks a lot for the link! Hmm, I downloaded the custom level from the site you linked and took all of the dll files and the Tomb2.exe and her music folder (which contains wma files) and injected it into my TR2main directory. But there is still no music in the main menu or lara voice sounds in the training level. Even if I just extract his/her custom level freshly and seperately into a different new folder, I'm able to start and play her Hidden Dagger II custom level, but there is no background music to be heard in his/her menu either. It seems he/she exchanged the 60 OG tracks through some other tracks - but it doesn't matter, shouldn't I hear some music in that menu, too?. But it's silent on my system. EDIT: Yes, there should be music in the very first scene of that custom level at least. I found this walkthrough on youtuibe But there is no music/voiceout on my system in that very first scene. My system doesn't seem to like the dll and wrappers involved. But that's weird, as I'm using ogg-winmm in this fork and different forks for other games and it usually works... |
You're not using windows 10? |
I'm on Win 10 64. Sound in setup is usual "primary device". I reselected it in setup anew, but no change. Usual game sounds work, too. It's just the digitized OST which doesn't work with the winmm and the material from the "music" folder As I wrote, I get sound and also bg music and voice over cdaudio.mp3 and cdaudio.dat in "audio" folder in my Tr2main folder. Getting the cdaudio.mp3 in German and high bitrate is all I'm looking for at the moment. So I wouldn't even care if alternative custom tracks wouldn't work right now But then I would have to know how to rip my original cd and create a new cdaudio.dat for that... "Run from the shell" I don't understand. How would I do that? |
but there is dsound and winmm, I think you have a problem with just winmm
Open Command Prompt:
Change to the directory where Tomb2.exe is located:
Run Tomb2.exe:
Check for error messages:
|
You mentioned dsound. I don't think this has anything to do with TR2main and its refusal to play sound from the ogg files in the music folder on my system. But I'll just mention it just in case: My Win10 system is modded slightly for using dsoal for 3dsound and EAX restore. To make that work, I had to change my Windows registry a bit. There are four entries like this: HKEY_LOCAL_MACHINE\Software\Classes\CLSID{47D4D946-62E8-11CF-93BC-444553540000}\InprocServer32 which are changed to have only dsound.dll as value. Before it was %SystemRoot%\System32\dsound.dll But as I wrote, I don't think this has anything to do with the problem I described here. |
Just came back home and tested TR2main on my alternative desktop system. Copy/Pasted my Tr2Main folder from my notebook to this other system of mine and everything works out of the box there with personally ripped hq ogg files from "music" folder and the ayuanx ogg-winmm wrapper. The fanmod level Hidden Dagger II also works there with its dll files and the music/voice out in the menu and game. This desktop system is also Windows 10 64. Clearly, Tr2Main 9.0 is able to play alternative music files from "music" folder just fine if the system it runs on allows it. So it's clearly some (probably complicated) system setup problem on that notebook system I encountered the problem on. Will investigate this further when I find the time. Also, some hints how to rip an audio cd to a single file and automatically generate a cdaudio.dat file with the correct timecode (and which ripper to use for that) would still be greatly appreciated. |
WinMM relies on older, more generic audio drivers, and many modern sound cards may not fully support or prioritize this older API. Some sound cards may not have robust driver support for the older Windows Multimedia API, which could cause issues with playback or functionality when using winmm.dll. So what sound card did you use on the other computer that did not work? I'm interested. Maybe also how did just not ogg-winmm work? |
yes I think it could indeed be this |
The soundcard of the notebook TR2main has the problem on is just some generic Realtek onboard driver. It's generally quite a dated notebook that was sold still with Windows 7 and updated to Win 10. EDIT: I actually do have an external soundcard from Creative for 3d Sound attached to it via usb (Creative Omni Surround). I can choose in my taskbar which soundcard does the output, though. I actually had the idea before it could have something to do with that. But there was no change to that missing music problem regardless if I used onboard sound or that external card. As for now, that seemed to turn out to be a red herring for the problem. But (I think I already wrote this) I use ogg-winmm in different forks quite often on that system and it usually works fine. Right now I'm out of ideas. I may try renaming winmm.dll there to winmx and hex editing the Tomb2.exe to point it to that as next attempt. This is something others with similar weird ogg-winmm problems often write about in other cases. Maybe it's worth a shot. But I won't have time for any more messing around with this naggy little problem until Thursday or so. |
The DSOAL modification could be it, you think? This would be the first time that modification causes problems, but thanks for the idea, I'll be looking into it. That will require some finnicky messing around with the registry again, though. I'll try in some days. |
yes I am stupid I forgot this. I had this happen to me. |
I wanted to add high bitrate (320) MP3 of my German game CD audio to use with TR2main v0.9.0.
I was following the instructions for using different audio made in this thread:
https://www.tombraiderforums.com/showthread.php?t=225217.
So I deleted the audio folder, created a folder "music" inside my tr2main folder and added the ripped MP3 files named 02.mp3, 03.mp3... 60.mp3. Additionally, I put the dll files from the TRII music fix for mp3 inside the root directory (winmm.dll and fmodex.dll).
But there is no background music (or voice audio) playing at all.
I also tried using oggs named track02, track03... track60 and added the according dll files from the Music Fix for ogg files, but that didn't work either, Tr2main simply ignores the tracks in the music folder.
Does this method to make Tr2main use different audio tracks fail to work with the new 0.9.0 version of TR2main?
The text was updated successfully, but these errors were encountered: