Show Posts
|
|
Pages: [1] 2
|
|
2
|
Developments / BASS / Re: BASS for Android
|
on: 26 Mar '13 - 20:55
|
|
Hi guys,
I was looking for a way to extend the web radio player with AAC PLUS. I added the addon to my project. Do i need to use flags or how do i implement this?
|
Reply
Quote
|
|
|
3
|
Developments / BASS / Re: DX8, Stereo streams and 3D
|
on: 9 Mar '12 - 17:17
|
|
Yeah well it seems to be less crackling with 1 splitter. But though that i can still hear some small cracks. And yes its for every url i try, and that are alot.
Anyways, the reason i use BASS is that i want to stream radio's, so they should actualy work.
EDIT: I tried this with music i made myself, but it seems that the tempo is getting faster each time. Perhaps that why the internet radio streams are lattering... EDIT2: It seems like, when i walk away of the soundChannel Position, the crackling disappears. Is the volume of 3d stuff to high? Any way to correct this?
|
Reply
Quote
|
|
|
4
|
Developments / BASS / Re: DX8, Stereo streams and 3D
|
on: 9 Mar '12 - 10:50
|
|
Hi thanks for the reply.
When i change the channel volume to 0.5 or lower it is still crackling, also when i disable the 3d flags. It seems to be the splitting. Without splitting it sounds okay.
It seems not only being crackling, but also a bit slower than without splitting.
Im on windows btw.
What else could be wrong?
|
Reply
Quote
|
|
|
5
|
Developments / BASS / Re: DX8, Stereo streams and 3D
|
on: 8 Mar '12 - 15:32
|
Maybe to old topic, but i'm trying to convert stereo to mono to play all radio streams. It works, but i hear some crackling noise. How do i fix that? this is my code: bool init = BASS_Init(-1, 44100, initFlags.BASS_DEVICE_3D | initFlags.BASS_DEVICE_MONO, IntPtr.Zero, IntPtr.Zero);
BASS_SetConfig(configs.BASS_CONFIG_NET_PLAYLIST, 1);
stream = BASS_StreamCreateURL(url, 0,streamFlags.BASS_STREAM_DECODE , 0, 0);
int[] chanmap = new int[2]; chanmap[0]=0; chanmap[1]=-1; int outleft = BASS_Split_StreamCreate(stream, flags.BASS_SAMPLE_3D, chanmap); chanmap[0]=1; chanmap[1]=-1; int outright = BASS_Split_StreamCreate(stream, flags.BASS_SAMPLE_3D, chanmap); BASS_ChannelSetLink(outleft, outright);
BASS_ChannelPlay(outleft, false);
|
Reply
Quote
|
|
|
8
|
Developments / BASS / Re: BASS Vector3 crash
|
on: 1 Mar '12 - 17:12
|
no i cant use the .Net dll as i cant register is, because it then conflicts with the Unity3d System.core when i use BassNet namespace. I get a ambiguous warning and because of that a compile error within unity I use this to declare the function: [DllImport("bass.dll")] public static extern bool BASS_Set3DPosition( BASS_3DVECTOR pos, BASS_3DVECTOR vel, BASS_3DVECTOR front, BASS_3DVECTOR top);
How should it receive the 3d positions actually?
|
Reply
Quote
|
|
|
10
|
Developments / BASS / BASS Vector3 crash
|
on: 29 Feb '12 - 20:03
|
Hi, Im creating a .net wrapper for unity. When i try to implement 3d positions i crash when i send a struct with floats higher than zero. Anyone knows why? This is my code: using System; using System.Collections.Generic;
using System.Text; using System.Runtime.InteropServices;
using MyType = System.Int64;
namespace bt { public class bass {
public struct BASS_3DVECTOR { public float x, y, z;
}
public enum channelSettings { BASS_ATTRIB_EAXMIX = 4, BASS_ATTRIB_FREQ = 1, BASS_ATTRIB_MUSIC_AMPLIFY, BASS_ATTRIB_MUSIC_BPM, BASS_ATTRIB_MUSIC_PANSEP, BASS_ATTRIB_MUSIC_PSCALER, BASS_ATTRIB_MUSIC_SPEED, BASS_ATTRIB_MUSIC_VOL_CHAN, BASS_ATTRIB_MUSIC_VOL_GLOBAL, BASS_ATTRIB_MUSIC_VOL_INST, BASS_ATTRIB_NOBUFFER, BASS_ATTRIB_PAN = 3, BASS_ATTRIB_VOL = 2
} public enum channelTags { BASS_TAG_ICY = 4, BASS_TAG_META = 5, BASS_TAG_HTTP = 3, BASS_TAG_OGG = 2 } public enum syncTypes { BASS_SYNC_META = 4 } public enum initFlags { BASS_DEVICE_3D = 4 }
public enum flags { BASS_DEFAULT = 0, BASS_SAMPLE_MONO = 2, BASS_SAMPLE_3D = 8
} public enum test { BASS_CONFIG_DEV_BUFFER } public enum configs { BASS_CONFIG_NET_PLAYLIST = 21, BASS_CONFIG_BUFFER, BASS_CONFIG_DEV_BUFFER
} [DllImport("bass.dll")]
public static extern bool BASS_ChannelSet3DPosition(int stream, BASS_3DVECTOR pos, BASS_3DVECTOR pos1, BASS_3DVECTOR pos2);
public static bool set3DPosition() { BASS_3DVECTOR pos;
pos.x = 0f; pos.y = 0f; pos.z = 0f;
pos.x = 1f; //crash
bool test = BASS_Set3DPosition(pos, pos, pos, pos); return test; }
public static int stream; public static int play(string url) {
if (BASS_Init(-1, 44100, initFlags.BASS_DEVICE_3D, IntPtr.Zero, IntPtr.Zero)) {
BASS_PluginLoad("bass_aac.dll", 0);
BASS_SetConfig(configs.BASS_CONFIG_NET_PLAYLIST, 1);
stream = BASS_StreamCreateURL(url, 0, flags.BASS_SAMPLE_3D | flags.BASS_SAMPLE_MONO, 0, 0);
if (stream != 0) {
BASS_ChannelPlay(stream, false);
return stream; } else { return 1; }
} else { return 2; } }
} }
|
Reply
Quote
|
|
|
11
|
Developments / BASS / Re: BASS_ERROR_FILEFORM
|
on: 28 Feb '12 - 11:48
|
This is the code i use: BASS_PluginLoad("bass_aac.dll", 0); BASS_SetConfig(configs.BASS_CONFIG_NET_PLAYLIST,1); stream = BASS_StreamCreateURL(url, 0, flags.BASS_SAMPLE_3D & flags.BASS_SAMPLE_MONO, 0, 0);
I quess that should be ok?
|
Reply
Quote
|
|
|
13
|
Developments / BASS / BASS_ERROR_NO3D
|
on: 26 Feb '12 - 13:08
|
Hi, I'd like to use 3d stuff. Whenever i try to set BASS_ChannelSet3DPosition, i get the error code BASS_ERROR_NO3D Do i need to config the channel as well to have 3d supported?. I use the following code and note that i dont get any error with these: BASS_Init(-1, 44100,initFlags.BASS_DEVICE_3D, IntPtr.Zero, IntPtr.Zero); stream = BASS_StreamCreateURL(url, 0, flags.BASS_SAMPLE_3D & flags.BASS_SAMPLE_MONO, 0, 0);
Why wouldn't the init or stream codes return the NO3D error but only the BASS_ChannelSet3DPosition afterwards? Thanks
|
Reply
Quote
|
|
|
16
|
Developments / BASS / Re: .net wrapper
|
on: 24 Feb '12 - 19:45
|
|
Thanks.
I cant use the .net wrapper because it uses parts of code some parts are ambiguous with Unity System.Core. Because of this i cant use BassNet to register it.
I'll try the config stuff, see what happens ill let u know. actaly, how would i able to change the value if its defined. I cant change the setting at runtime. Any idea? is a enum the right thing to use?
|
Reply
Quote
|
|
|
17
|
Developments / BASS / Re: BASS_ERROR_FILEFORM
|
on: 24 Feb '12 - 17:03
|
|
I cant find any information about the usage of acc. Indeed sky.fm uses aac plus.
I still cant use the .pls, but when i open the .pls i see a url, and that works..
How do i use the .pls?
Thanks
|
Reply
Quote
|
|
|
20
|
Developments / BASS / Re: tags documentation?
|
on: 24 Feb '12 - 09:44
|
Im not using the .net wrapper, but making my own. Im looking for another way to get these tags, otherwise i need to use unsafe code. Im getting this error: Pointers and fixed size buffers may only be used in an unsafe context How to receive the tags as string array?
|
Reply
Quote
|
|
|