25 May '13 - 11:04 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2
1  Developments / BASS / Re: BASS for Android on: 27 Mar '13 - 16:02
Hi Ian,

I was trying to play one of these aac plus radio channels from Sky.FM:

http://frozenshinigami.wordpress.com/2011/03/25/online-radio-streaming-via-sky-fm/


But these dont work. aac plus should work?



EDIT: I found out how to play them. Url's look like http://www.sky.fm/mp3/classicrap.pls these work!

ReplyReply Reply with quoteQuote
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?
ReplyReply Reply with quoteQuote
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?
ReplyReply Reply with quoteQuote
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?
ReplyReply Reply with quoteQuote
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);

ReplyReply Reply with quoteQuote
6  Developments / BASS / Re: BASS Vector3 crash on: 7 Mar '12 - 18:05
No more crashes with that. Thanks!
ReplyReply Reply with quoteQuote
7  Developments / BASS / Re: BASS_ERROR_FILEFORM on: 2 Mar '12 - 12:52
It seems to be working now.

I think it was because i called BASS_Init every time i started a stream.

Thanks anyhow Grin
ReplyReply Reply with quoteQuote
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?
ReplyReply Reply with quoteQuote
9  Developments / BASS / Re: BASS_ERROR_FILEFORM on: 1 Mar '12 - 13:39
I have changed that but still i cant open the .pls files from skyfm i posted in the first post  Huh
ReplyReply Reply with quoteQuote
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;
            }
        }

    }
}
ReplyReply Reply with quoteQuote
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?
ReplyReply Reply with quoteQuote
12  Developments / BASS / Re: BASS_ERROR_NO3D on: 26 Feb '12 - 16:39
I updated this question. Do i need to config the channel itself?
ReplyReply Reply with quoteQuote
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
ReplyReply Reply with quoteQuote
14  Developments / BASS / Re: .net wrapper on: 24 Feb '12 - 20:34
Alright , it seems to work all. Thanks Smiley
ReplyReply Reply with quoteQuote
15  Developments / BASS / BASS_ChannelSetAttribute Volume on: 24 Feb '12 - 20:02
Hi,

When i try to use the BASS_ChannelSetAttribute function and set the volume, it returns True, but, i dont notice any changes in volume.. What could be wrong?

Thanks Undecided
ReplyReply Reply with quoteQuote
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?
ReplyReply Reply with quoteQuote
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
ReplyReply Reply with quoteQuote
18  Developments / BASS / BASS_ERROR_FILEFORM on: 24 Feb '12 - 12:41
Manny radio's return the FileForm error. Anyone knows why?

Like these links:

http://frozenshinigami.wordpress.com/2011/03/25/online-radio-streaming-via-sky-fm/

note that i tried following configs, and also note that some .pls do work.

Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_NET_PLAYLIST,1);
Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_NET_PLAYLIST,2);
Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_NET_PLAYLIST,21);


Anyone knows how to get these sky.fm works?
ReplyReply Reply with quoteQuote
19  Developments / BASS / Re: BASS_StreamCreateFile return 0 on: 24 Feb '12 - 12:38
try c:/test/test.mp3, that worked for me.
ReplyReply Reply with quoteQuote
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?
ReplyReply Reply with quoteQuote
Pages: [1] 2
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines