24 May '13 - 09:11
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Un4seen Developments Forum
>
Developments
>
BASS
> Topic:
strange Error 41 (Fileform) phenomenon
Pages: [
1
]
« previous
|
next »
Reply
|
Print
Author
Topic: strange Error 41 (Fileform) phenomenon (Read 598 times)
JRfromFL
Posts: 6
strange Error 41 (Fileform) phenomenon
«
on:
21 Jun '12 - 15:48 »
Quote
Hi there,
I'm currently doing some tests on a RPi using BASS and BASSMix and have a problem with creating a file stream for an mp3 file.
I just want to play two files in parallel added to a mixer stream and this works fine with two ogg files. As soon as I try to start a mp3 file as the second stream the BASS_STREAMCREATEFILE returns Error 41. When I start the mp3 file first it works.
I tried the same on a x86 Linux (Ubuntu 12.04 32 bit) with the same result. I use FPC 2.6.0 and Lazarus 0.9.30.4 and the application is a console app.
Any help is appreciated.
Thanks!
JR
Logged
Ian @ un4seen
Administrator
Posts: 15270
Re: strange Error 41 (Fileform) phenomenon
«
Reply #1 on:
21 Jun '12 - 16:40 »
Quote
That sounds strange. Is the problem happening with all MP3 files, or a particular file? If it's a particular file, please upload it to have a look at here...
ftp.un4seen.com/incoming/
Logged
JRfromFL
Posts: 6
Re: strange Error 41 (Fileform) phenomenon
«
Reply #2 on:
22 Jun '12 - 19:47 »
Quote
Indeed it's strange and the more I step forward the more strange it becomes.
I tried several mp3 files, always the same result. If I use the file as first file for a mixer stream, it plays as expected. If I then start the next file and it's an mp3 the STREAMCREATEFILE returns error 41.
I thought it may have to do something with the fact, that the app is a console app and so BASS_INIT is called with a NIL pointer as Windows Handle. So I wrote a short program as a X application. While doing this I found out, that the current version of BASS on Linux expects a pointer as WIN handle in the BASS_INIT function. I believe, formerly it was a HWND, right ? Where should this pointer point to ? Does BASS_INIT expect the ADDR of a window handle ?
Next strange thing is, that I also can't play any FLAC files. If I replace the OGG or MP3 or even m4a file with a FLAC file I also get an ERROR 41 as result of the STEAMCREATEFILE, even if it's the first file, I want to use with a mixer stream.
BASS_PluginLoad with FLAC and AAC lib both don't return 0, so load correctly. All BASS components have just been downloaded from the Website.
Until now I did not try all this with MSWindows, because I don't wanna go there. Do you think, I should try.
Thanks for your help!
JRfromFL
Logged
JRfromFL
Posts: 6
Re: strange Error 41 (Fileform) phenomenon
«
Reply #3 on:
24 Jun '12 - 19:04 »
Quote
Just some more test results :
I did the same tests in a unity environment using the address of the main window handle as WIN parameter and I could play more then one MP3 at a time. So to me it looks like it has to do something with the WIN parameter in the BASS_INIT call and the fact, that I don't have any window in a console application. Ian, can you please tell me, what are the right parameters using BASS_INIT in a console app ?
But still I can't play any FLAC file. Maybe this is a file format problem, I will try a different encoder.
Many thanks.
JRfromFL
Logged
Ian @ un4seen
Administrator
Posts: 15270
Re: strange Error 41 (Fileform) phenomenon
«
Reply #4 on:
25 Jun '12 - 16:28 »
Quote
The BASS_Init "win" parameter is only used on Windows; you can just use NULL/nil on Linux and other platforms.
Did you upload the "this_file_dont_worked.mp3" file to the FTP server? If so, that file includes HTTP headers (from an nginx server), which is resulting in BASS_StreamCreateFile producing a BASS_ERROR_FILEFORM error. Perhaps the file was downloaded from a webserver and the headers were accidentally saved too.
Logged
JRfromFL
Posts: 6
Re: strange Error 41 (Fileform) phenomenon
«
Reply #5 on:
31 Jul '12 - 15:56 »
Quote
Thanks once again for your help. I just started from the scratch, new project, new source code and what should I say ... yes, it works.
Now I switched from Debian (armel) to the Raspbian (armhf) distribution and it seems and now I get a "no such file or directory" error when starting the binary and loading the libbass.so. Could the armhf architecture of the Raspbian be the reason for this ?
JR
Logged
Pages: [
1
]
Reply
|
Print
Un4seen Developments Forum
>
Developments
>
BASS
> Topic:
strange Error 41 (Fileform) phenomenon
« previous
|
next »
Jump to:
Please select a destination:
-----------------------------
Developments
-----------------------------
=> BASS
=> XMPlay
=> MO3
-----------------------------
Off Topic
-----------------------------
=> General Discussion
Loading...