|
toob
Posts: 112
|
 |
« Reply #160 on: 17 May '12 - 18:37 » |
Quote
|
I just checked, and it seemed to be fine, ie. BASS_FX was loaded and the reverse processing applied, so that's strange. After replacing the SO and/or Java files, be sure to "Refresh" the corresponding project branch in Eclipse. If it's still not working after that, please confirm the date and size of the SO files in your app's APK file (it's a ZIP file). Also confirm which line the error message is appearing at; I guess it's the BASS_FX_ReverseCreate call?
Thanks Ian for confirming it works ok your end. Allthough "libbass_fx.so" in my eclipse libs tree "armeabi" and "armeabi-v7a" were showing fine with no errors when I clicked on properties they showed as missing. Copied them from bass_fx zip folder and it's now sorted. Was sure I checked everything!  thanks for the quick response and the updates.
|
|
|
|
|
Logged
|
|
|
|
|
rai2270
Posts: 5
|
 |
« Reply #161 on: 17 May '12 - 22:14 » |
Quote
|
Hi, I'm reading from the Music folder and making sure each file can be play by BASS. So I'm checking extensions like : ".mp3", ".mid", ".wav", ".ogg", ".mp4" . Does anyone already prepared a list of all the types BASS can play? Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
Ian @ un4seen
Administrator
Posts: 15270
|
 |
« Reply #162 on: 18 May '12 - 14:56 » |
Quote
|
BASS and the add-ons check the file content rather than the extension to determine whether a file is playable, so there is no real need to pre-check a file's extension. But if you would like to do that (eg. for a file selector), BASS itself supports OGG/MP3/MP2/MP1/WAV/AIFF files, and the add-on supported formats are available from BASS_PluginGetInfo. The Android version of the PLUGINS example doesn't filter its file lists (it uses a very basic file selector), but you could have a look at the Win32 or Linux versions for a demonstration of doing that.
|
|
|
|
|
Logged
|
|
|
|
|
Ian @ un4seen
Administrator
Posts: 15270
|
 |
« Reply #163 on: 7 Jun '12 - 16:21 » |
Quote
|
Updated BASS and BASSmix builds are up in the first post, including NEON-optimized sinc interpolation for a nice performance boost on NEON-supporting devices, which is most ARMv7 devices. The non-NEON code is also still included for devices that don't support NEON.
|
|
|
|
|
Logged
|
|
|
|
|
xStSx
Posts: 9
|
 |
« Reply #164 on: 8 Jun '12 - 13:10 » |
Quote
|
Hi. I'm trying to write simple HelloWorld with Bass on Android (playing internet radio) but I always receiving 0 from BASS_StreamCreateURL , and Error code 2 (ERROR_FILEOPEN) ,is there some trick ? static final String url = "http://webcast.emg.fm:55655/europaplus128.mp3"; ... BASS.BASS_Init(-1, 44100, 0); BASS.BASS_SetConfigPtr(BASS.BASS_CONFIG_NET_AGENT, "Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.45 Safari/535.19"); //needed for this specific stream
chan = BASS.BASS_StreamCreateURL(url, 0, BASS.BASS_STREAM_BLOCK|BASS.BASS_STREAM_AUTOFREE, null, null); ... BASS.BASS_ChannelPlay(chan, false);
same code in C/Linux working fine. Thanks. Stas. Android 2.3.3 debuging on phone.
|
|
|
|
« Last Edit: 8 Jun '12 - 13:14 by xStSx »
|
Logged
|
|
|
|
|
Ian @ un4seen
Administrator
Posts: 15270
|
 |
« Reply #165 on: 8 Jun '12 - 16:30 » |
Quote
|
BASS_ERROR_FILEOPEN indicates that BASS_StreamCreateURL was unable to open the URL, eg. it couldn't connect to the server or the file doesn't exist on the server. Please try to play the same URL with the NETRADIO example (add your BASS_CONFIG_NET_AGENT setting if required), and check if it displays a "HTTP" status code. Also check whether the example presets are working. If no URLs are working, are you able to play them with any other software on the same device?
|
|
|
|
|
Logged
|
|
|
|
|
xStSx
Posts: 9
|
 |
« Reply #166 on: 8 Jun '12 - 16:47 » |
Quote
|
BASS_ERROR_FILEOPEN indicates that BASS_StreamCreateURL was unable to open the URL, eg. it couldn't connect to the server or the file doesn't exist on the server. Please try to play the same URL with the NETRADIO example (add your BASS_CONFIG_NET_AGENT setting if required), and check if it displays a "HTTP" status code. Also check whether the example presets are working. If no URLs are working, are you able to play them with any other software on the same device?
Yes , Ian , the URL is alive , and working with other applications on Android ,as well on PC. About Netradio examp . I'm just started with Android/Java/Eclipse , I didn't figure out how to open it in Eclipse  , so I just started a new Android project (the libs and BASS.java are in correct place . BASS.BASS_GetVersion() working and BASS.BASS_Init(...) as well). Does BASS.BASS_StreamCreateURL accept URL in UTF-8 encodings ? , or it has to be converted to ISO-8859-1 ? Or to make whole project in ISO-8859-1.. Thank you. Stas.
|
|
|
|
|
Logged
|
|
|
|
|
Ian @ un4seen
Administrator
Posts: 15270
|
 |
« Reply #167 on: 8 Jun '12 - 17:52 » |
Quote
|
To play with the NETRADIO example, you can use the "New > Android Project > Create project from existing source" option to create a project for it in Eclipse. Also import the root SRC folder (containing the BASS class) via the "Build Path > Link Source" option and copy the root LIBS folder (containing the BASS library) into the NETRADIO example's folder.
After adding your BASS_CONFIG_NET_AGENT setting to the NETRADIO example, I was able to play your URL with it. If it still isn't working there, are other URLs working, eg. the example presets? If none are working, do you know if the other software that you tried is connecting via a proxy? If it is, you can try telling the NETRADIO example to use that too (in the box at the bottom of the display).
|
|
|
|
|
Logged
|
|
|
|
|
xStSx
Posts: 9
|
 |
« Reply #168 on: 8 Jun '12 - 19:08 » |
Quote
|
To play with the NETRADIO example, you can use the "New > Android Project > Create project from existing source" option to create a project for it in Eclipse. Also import the root SRC folder (containing the BASS class) via the "Build Path > Link Source" option and copy the root LIBS folder (containing the BASS library) into the NETRADIO example's folder.
After adding your BASS_CONFIG_NET_AGENT setting to the NETRADIO example, I was able to play your URL with it. If it still isn't working there, are other URLs working, eg. the example presets? If none are working, do you know if the other software that you tried is connecting via a proxy? If it is, you can try telling the NETRADIO example to use that too (in the box at the bottom of the display).
You are magician  . Yesterday I tried excatly same thing on Linux.. it gived me again and again same error(Eclipse Error) . Now I tried on Windows , everything works , my URL , and all the rest presets. Thanks for repeating the explanation , this time it works. I will try to figure out why my code didn't worked. Thank you again Ian.
|
|
|
|
|
Logged
|
|
|
|
|
Ian @ un4seen
Administrator
Posts: 15270
|
 |
« Reply #169 on: 11 Jun '12 - 15:36 » |
Quote
|
Another NEON optimized BASS update is up in the first post, this time giving the MP3 decoder a performance boost.
|
|
|
|
|
Logged
|
|
|
|
|
elimmedia
Posts: 11
|
 |
« Reply #170 on: 19 Jun '12 - 02:58 » |
Quote
|
Hello Ian,
This is Elim Media from Korea.
I have found that BASS_MIDI_StreamCreateEvents function is missing on Android platform.
Could you please let us know when it would be available,
any other way around to play an array of midi events( sequence) ?
Thank you in advance.
|
|
|
|
|
Logged
|
|
|
|
|
elimmedia
Posts: 11
|
 |
« Reply #171 on: 19 Jun '12 - 07:46 » |
Quote
|
I have stuttering output problem on LG Optimus Lte 2 ( Android platform) model. What I found so far is below. 1. Using Default Sound output ( OpenSL) : - Init BASS as "BASS.BASS_Init(-1, 44100, 0)" and output is stuttering. - Tried changing BASS_CONFIG_DEV_BUFFER size and all possible buffer size, same result 2. Using No Sound : - Init BASS as "BASS.BASS_Init(0, 44100, 0))", set AudioTrack minBufferSize to the value from "AudioTrack.getMinBufferSize" and output is stuttering, minBufferSize was 3760, - set minBufferSize double of the value (3760*2) and output is OK. * What i found is that OpenSLES is implemented on top of AudioTrack ( http://connect.creativelabs.com/developer/SoundFont/sfspec21.pdf). I am guessing that LG Developer sets too small buffer size on AudioTrack, so that even output from OpenSL gets stuttering. * I cannot just use AudioTrack, because there are so many drawings and calculation beside playing sounds and using AudioTrack affects drawing time. Anyone have any idea for this issue? ps. sorry for my english 
|
|
|
|
|
Logged
|
|
|
|
|
Ian @ un4seen
Administrator
Posts: 15270
|
 |
« Reply #172 on: 19 Jun '12 - 16:30 » |
Quote
|
I have found that BASS_MIDI_StreamCreateEvents function is missing on Android platform.
Could you please let us know when it would be available,
The next BASSMIDI release, including that new function, should be available shortly. In the meantime, I have put the latest stuff (including the function) up in the package in the first post. I have also put up provisional documentation for the function here: www.un4seen.com/doc/bassmidi/BASS_MIDI_StreamCreateEvents.htmlI have stuttering output problem on LG Optimus Lte 2 ( Android platform) model.
What I found so far is below.
1. Using Default Sound output ( OpenSL) :
- Init BASS as "BASS.BASS_Init(-1, 44100, 0)" and output is stuttering.
- Tried changing BASS_CONFIG_DEV_BUFFER size and all possible buffer size, same result
Did you set the BASS_CONFIG_DEV_BUFFER value (via BASS_SetConfig) before you made the BASS_Init call? If not, please try that, as changes will not affect an already initialized device. Also, do you get the stuttering with everything that you try to play, including PCM WAV files?
|
|
|
|
|
Logged
|
|
|
|
|
elimmedia-shin
Guest
|
 |
« Reply #173 on: 20 Jun '12 - 02:24 » |
Quote
|
I have found that BASS_MIDI_StreamCreateEvents function is missing on Android platform.
Could you please let us know when it would be available,
The next BASSMIDI release, including that new function, should be available shortly. In the meantime, I have put the latest stuff (including the function) up in the package in the first post. I have also put up provisional documentation for the function here: www.un4seen.com/doc/bassmidi/BASS_MIDI_StreamCreateEvents.htmlI have stuttering output problem on LG Optimus Lte 2 ( Android platform) model.
What I found so far is below.
1. Using Default Sound output ( OpenSL) :
- Init BASS as "BASS.BASS_Init(-1, 44100, 0)" and output is stuttering.
- Tried changing BASS_CONFIG_DEV_BUFFER size and all possible buffer size, same result
Did you set the BASS_CONFIG_DEV_BUFFER value (via BASS_SetConfig) before you made the BASS_Init call? If not, please try that, as changes will not affect an already initialized device. Also, do you get the stuttering with everything that you try to play, including PCM WAV files? I have found that BASS_MIDI_StreamCreateEvents function is missing on Android platform.
Could you please let us know when it would be available,
The next BASSMIDI release, including that new function, should be available shortly. In the meantime, I have put the latest stuff (including the function) up in the package in the first post. I have also put up provisional documentation for the function here: www.un4seen.com/doc/bassmidi/BASS_MIDI_StreamCreateEvents.htmlI have stuttering output problem on LG Optimus Lte 2 ( Android platform) model.
What I found so far is below.
1. Using Default Sound output ( OpenSL) :
- Init BASS as "BASS.BASS_Init(-1, 44100, 0)" and output is stuttering.
- Tried changing BASS_CONFIG_DEV_BUFFER size and all possible buffer size, same result
Did you set the BASS_CONFIG_DEV_BUFFER value (via BASS_SetConfig) before you made the BASS_Init call? If not, please try that, as changes will not affect an already initialized device. Also, do you get the stuttering with everything that you try to play, including PCM WAV files? I have tried changing BASS_CONFIG_DEV_BUFFER value before BASS_Init call and still sturrering, and haven't tried PCM WAV files, (we are using AAC) I will try using PCM WAV and let you know the result shortly. I really appreciate for your quick response.
|
|
|
|
|
Logged
|
|
|
|
|
elimmedia
Posts: 11
|
 |
« Reply #174 on: 29 Jun '12 - 03:36 » |
Quote
|
Hi Ian,
I have a question regarding BASSMIDI,
I have created Events and init with BASS_MIDI_StreamCreateEvents.
let's say that i have midi data with two channel.
if events has only one channel, it works fine, but if i merge both of channel,i got an error.
I also got the same error with one channel.
Any idea?
ps. I have found that I cannot create streamEvents if number of events exceed 250
06-29 11:27:54.754: E/dalvikvm(26242): JNI ERROR (app bug): local reference table overflow (max=512) 06-29 11:27:54.754: W/dalvikvm(26242): JNI local reference table (0x16a3d70) dump: 06-29 11:27:54.754: W/dalvikvm(26242): Last 10 entries (of 512): 06-29 11:27:54.754: W/dalvikvm(26242): 511: 0x414f56a0 java.lang.Class<com.un4seen.bass.BASSMIDI$BASS_MIDI_EVENT> 06-29 11:27:54.754: W/dalvikvm(26242): 510: 0x414fb8d0 com.un4seen.bass.BASSMIDI$BASS_MIDI_EVENT 06-29 11:27:54.754: W/dalvikvm(26242): 509: 0x414f56a0 java.lang.Class<com.un4seen.bass.BASSMIDI$BASS_MIDI_EVENT> 06-29 11:27:54.754: W/dalvikvm(26242): 508: 0x414fb808 com.un4seen.bass.BASSMIDI$BASS_MIDI_EVENT 06-29 11:27:54.754: W/dalvikvm(26242): 507: 0x414f56a0 java.lang.Class<com.un4seen.bass.BASSMIDI$BASS_MIDI_EVENT> 06-29 11:27:54.754: W/dalvikvm(26242): 506: 0x414fb8b0 com.un4seen.bass.BASSMIDI$BASS_MIDI_EVENT 06-29 11:27:54.754: W/dalvikvm(26242): 505: 0x414f56a0 java.lang.Class<com.un4seen.bass.BASSMIDI$BASS_MIDI_EVENT> 06-29 11:27:54.754: W/dalvikvm(26242): 504: 0x414fb7e8 com.un4seen.bass.BASSMIDI$BASS_MIDI_EVENT 06-29 11:27:54.754: W/dalvikvm(26242): 503: 0x414f56a0 java.lang.Class<com.un4seen.bass.BASSMIDI$BASS_MIDI_EVENT> 06-29 11:27:54.754: W/dalvikvm(26242): 502: 0x414fb720 com.un4seen.bass.BASSMIDI$BASS_MIDI_EVENT 06-29 11:27:54.754: W/dalvikvm(26242): Summary: 06-29 11:27:54.754: W/dalvikvm(26242): 256 of java.lang.Class (5 unique instances) 06-29 11:27:54.754: W/dalvikvm(26242): 2 of java.lang.String (2 unique instances) 06-29 11:27:54.754: W/dalvikvm(26242): 1 of java.lang.String[] (2 elements) 06-29 11:27:54.754: W/dalvikvm(26242): 252 of com.un4seen.bass.BASSMIDI$BASS_MIDI_EVENT (252 unique instances) 06-29 11:27:54.754: W/dalvikvm(26242): 1 of com.un4seen.bass.BASSMIDI$BASS_MIDI_EVENT[] (281 elements) 06-29 11:27:54.757: E/dalvikvm(26242): Failed adding to JNI local ref table (has 512 entries)
|
|
|
|
« Last Edit: 29 Jun '12 - 03:58 by elimmedia »
|
Logged
|
|
|
|
|
Ian @ un4seen
Administrator
Posts: 15270
|
 |
« Reply #175 on: 29 Jun '12 - 17:37 » |
Quote
|
An updated BASSMIDI version is up in the first post, with a little modification for the 250 event limit problem. Let me know if you still have any trouble with that.
I'm not sure I understand what the other problem is. Is the BASS_MIDI_StreamCreateEvents call failing? If so, what is the error code reported by BASS_ErrorGetCode? If you can, please also post a code snippet to reproduce the problem with.
|
|
|
|
|
Logged
|
|
|
|
|
elimmedia - shin
Guest
|
 |
« Reply #176 on: 30 Jun '12 - 23:45 » |
Quote
|
Thank you for your quick update! and sorry for my english  The second question I asked is same as the first one ( event limit) I haven't tried the updated version yet, but I am curious if there will be no event limit at all or limit is still exists with huge number. I found that different device has different number of event limit problem on old version, like Nexus S : 250 events Galaxy Tab 7inch : 500 events I will try the updated version soon and let you know the result. Thank you!!
|
|
|
|
|
Logged
|
|
|
|
|
Ian @ un4seen
Administrator
Posts: 15270
|
 |
« Reply #177 on: 2 Jul '12 - 15:04 » |
Quote
|
BASSMIDI itself does not have a limit on the number of events. The problem you encountered is that Java/JNI has a limit on the number of local object references used in native methods, eg. BASS_MIDI_StreamCreateEvents needs to get a reference to each BASS_MIDI_EVENT array element. The update should avoid hitting the limit by releasing references as soon as it is finished with them (rather than leaving it to Java to clean up).
|
|
|
|
|
Logged
|
|
|
|
|
iancast
Posts: 27
|
 |
« Reply #178 on: 8 Jul '12 - 03:31 » |
Quote
|
Hello,
Is BASSENC supported on Android? I can't find the library in the download package.
Thanks
|
|
|
|
|
Logged
|
|
|
|
|
Ian @ un4seen
Administrator
Posts: 15270
|
 |
« Reply #179 on: 9 Jul '12 - 16:10 » |
Quote
|
No, I'm afraid BASSenc isn't currently available for Android as there aren't any encoders to use with it, eg. no command-line encoders like LAME or OGGENC. If you would like to use encoding in your app, it may be possible to build the encoder library (eg. LAME or OGG/VORBIS) with the Android NDK and then import it into your app, eg. place the library in the LIBS folder and create a corresponding Java class for it. You would also need to implement some JNI stuff to bridge the Java/native divide; I guess that will be the trickiest part unless you are already familiar with JNI. Perhaps others have already gone to the trouble of doing this and there are ready-made libraries available? Here's something promising that Google threw up... https://github.com/intervigilium/liblame
|
|
|
|
|
Logged
|
|
|
|
|