Official BS.Player forums

Official BS.Player forums (http://forum.bsplayer.com/index.php)
-   Bug Reports And Codecs (http://forum.bsplayer.com/forumdisplay.php?f=10)
-   -   Problem with SDK and BSP_LoadAudio (http://forum.bsplayer.com/showthread.php?t=6258)

RafkeP 26th March 2005 07:26 PM

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";
Now when I start BSplayer and I go to Audio/Audio Streams, I see there is an audio stream called "audiofile.srt"
When I change my code to :
Code:

cds.lpData=(void *) "audiofile.mp3";
It doesn't load the audio file and it doesn't show in Audio/Audio Streams
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.

Tizio 21st June 2005 12:34 AM

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:

RafkeP 21st June 2005 07:42 AM

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.

bst 22nd June 2005 10:51 AM

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");

RafkeP 22nd June 2005 06:32 PM

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 12:10 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20