![]() |
Problem with SDK and BSP_LoadAudio Hi, I'm trying to write another plugin. One that requires the BSP_LoadAudio message. Whatever I try : the audio file won't load. I can load it manually but not from a plugin. So I tried the following : Instead of using an mp3 I took a normal srt file. (I know that's a subtitle file, but it was only a test) My code then looked like this : Code: cds.lpData=(void *) "audiofile.srt"; When I change my code to : Code: cds.lpData=(void *) "audiofile.mp3"; I did my tests with bsplayer122.817 and bsplayer122.812 on Windows XP and Win2000 Am I doing something wrong or can someone confirm this behaviour ? Thanks in advance, Rafke P. |
Have you still problems in this field? This is one of the few things in which I had no problem, my audio stream appears in the Audio Streams list and is reproduced correctly... :wink: |
I didn't work on this anymore so I still have the problem :? When I find some time I'm going to try it with the new build. Thanks for reporting. |
Can't find any error in this BSP_Loadaudio, but if you are writing plugin (DLL) there is no need for WM_COPYDATA, you can call this function like this: SendMessage(plgInfo->hwndParent,WM_BSP_CMD,BSP_LoadAudio,(LPARAM)"mp3f ile.mp3"); |
Thanks for tip bst! Since you both confirmed that it should be working: I gave it another try and I actually found my problem: it was a wrong passing of a parameter as filename :oops: . I didn't find it before because when I opened a video file with no audio and then the audio via the sendmessage, I didn't see anything in audio streams and the sound was muted. I realise now that this is normal behaviour. Anyway: the problem is fixed now, but I have a new one :? When I open the video and audio seperately (manual or via the plugin doesn't make a difference) the audio is out of sync when I skip ahead in the movie. If I keep watching from the beginning there is no problem. I'm afraid to ask, but can anyone confirm this ? |
All times are GMT +1. The time now is 03:22 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger