gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS Misc > Dissonance - Radio on your DS

#83925 - falcon!!! - Fri May 19, 2006 7:02 pm

http://people.uleth.ca/~dave.brady/projects/dissonance-0.2.1.zip

Quote:
This is the beginning of my internet radio client for DS. Version 0.2 features a new name, and greatly enhanced utility. It now plays a single internet radio station (the only one you need, in my opinion). This program does require you to have configured your DS for Nintendo WFC with an actual online game beforehand however.

#83927 - DarkKiller - Fri May 19, 2006 7:12 pm

First post! I'm checking it out now. Hope it works *crosses fingers*. Sounds like a nice app.

DarkKiller
_________________
The Dark... Is going to kill you today!

#83928 - falcon!!! - Fri May 19, 2006 7:24 pm

its' still a very beta version i think... and i cant understand how to use it.. I hear a voice but it repeats many times..

#83930 - Togmannen - Fri May 19, 2006 7:33 pm

I just test it now, its work perfect, some bugs. But nice work man! Hope you continue on this.

#83936 - D-loader - Fri May 19, 2006 7:59 pm

its currently supporting only 1 radiochannel, but the sourcecode is released too.. so, yeah

#83938 - Grupstra - Fri May 19, 2006 8:02 pm

Good glad to see it posted here, I saw it over akkit.org forums yesterday, but they are down today.

#83939 - Liquidnumb - Fri May 19, 2006 8:14 pm

Works perfectly on my G6. I can't wait to see more come of this. By the way, does the station have an address somewhere that I missed? I'd like to measure the quality against that of my PC.

EDIT: Oh, it's http://www.virginradio.co.uk/classicrock/

#83945 - shaz - Fri May 19, 2006 9:04 pm

It's nice to see things like this. Good work (I'll be testing it now)
_________________
It's so easy to be wise. Just think of something stupid, then dont do it.

#83949 - swimgod - Fri May 19, 2006 9:36 pm

PLEASE let us choose the radio station :D...
it works though...
volume is REALLY low...
so sad
make it loud
:D


great job so far though :)
_________________

1x WII 2x remotes
2x NDS/L(FMv7-ORG:v4,FMv7-org:DSL)
1x GBAMP
2x 1gb (MicroDrive{typeII}&SanDisk{typeI})
1x SuperPass2
1x Supercard-CF

MoonShell skins

#83959 - Togmannen - Fri May 19, 2006 10:36 pm

Are the guy who made this program, a member of this forum?
Its very hard to report issuses to him, if he don't read this topic. I know that he is on 1emulation forum.

#83961 - TheChuckster - Fri May 19, 2006 10:48 pm

Nice job. The scene has been waiting for something like this.

#83962 - Sylfurd - Fri May 19, 2006 10:52 pm

Ouch ! that's extremly cool !

It really needs a station chooser !

#83967 - stingfist - Fri May 19, 2006 11:15 pm

Pretty cool stuff, but still, low volume makes it impossible for everyday usage.

I don't mind a few more stations to choose :D

#83968 - shaz - Fri May 19, 2006 11:20 pm

swimgod wrote:
PLEASE let us choose the radio station :D...
it works though...
volume is REALLY low...
so sad
make it loud
:D


great job so far though :)


Exactly...
_________________
It's so easy to be wise. Just think of something stupid, then dont do it.

#83969 - STAKED - Fri May 19, 2006 11:23 pm

First time I can listen to japan-a-radio on this, it will become my instant favourite DS app. Good work.

#83988 - DS_XRAY - Sat May 20, 2006 12:39 am

AWESOME
_________________
Who me?

#83990 - Zed0 - Sat May 20, 2006 12:49 am

I just get little spurts of sound repeated a few times.
Using GBAMP.

#83992 - compacho - Sat May 20, 2006 1:24 am

Yay, it actually works. Great work!

Supercard SD

#84002 - swimgod - Sat May 20, 2006 3:52 am

http://people.uleth.ca/~dave.brady/projects.php
some body that knows what their doing download the source,
change the station,
and PLEASE raise the volume :D

[edit]
i found the part that controls the volume :P,
just need to re-compile it and it should be louder...
(dissonance\arm7\source\main.c:
Code:

//---------------------------------------------------------------------------------
int main(int argc, char ** argv) {
//---------------------------------------------------------------------------------
  REG_IPC_FIFO_CR = IPC_FIFO_ENABLE | IPC_FIFO_SEND_CLEAR; // enable & prepare fifo asap
   // Reset the clock if needed
   rtcReset();

   //enable sound
   powerON(POWER_SOUND);
   SOUND_CR = SOUND_ENABLE | SOUND_VOL(0x7F);
   IPC->soundData = 0;


0x7F should be changed to a higher value :P
_________________

1x WII 2x remotes
2x NDS/L(FMv7-ORG:v4,FMv7-org:DSL)
1x GBAMP
2x 1gb (MicroDrive{typeII}&SanDisk{typeI})
1x SuperPass2
1x Supercard-CF

MoonShell skins

#84010 - tepples - Sat May 20, 2006 4:31 am

0x7F is the maximum volume. The audio decoder will have to use software saturation and amplification of each sample in order to be able to push the DS louder.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#84012 - swimgod - Sat May 20, 2006 4:45 am

tepples wrote:
0x7F is the maximum volume. The audio decoder will have to use software saturation and amplification of each sample in order to be able to push the DS louder.

do you know how to do that :P,
because i have absoulutly No Clue :D...

if you get it working i think someone needs a hug :D lol

also i was unable to find the place to enter the url of the server...
weird...
:P
[edit][in the source it says
Code:
he=gethostbyname("vruk.sc.llnwd.net"); ..... ...... he->h_addr_list[0]
]

whats in the url that gives the server?...
is it a playlist or something :P (i have no clue...)

(then again i know nothing about programming in anything besides php :P)
_________________

1x WII 2x remotes
2x NDS/L(FMv7-ORG:v4,FMv7-org:DSL)
1x GBAMP
2x 1gb (MicroDrive{typeII}&SanDisk{typeI})
1x SuperPass2
1x Supercard-CF

MoonShell skins

#84019 - tepples - Sat May 20, 2006 5:13 am

swimgod wrote:
tepples wrote:
0x7F is the maximum volume. The audio decoder will have to use software saturation and amplification of each sample in order to be able to push the DS louder.

do you know how to do that :P,
because i have absoulutly No Clue :D...

Multiply each sample by a fixed-point number greater than 1.0, and then if a sample goes outside [-32000..32000], clip it to that range. If you want "tape-like" or "tube-like" soft saturation instead of harsh clipping, there is code for this in GSM Player.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#84030 - HyperHacker - Sat May 20, 2006 6:14 am

Nice. Can't wait until choosing other stations is possible. I believe VLC is able to act as a server for this, so you might be able to use that to listen to your MP3 collection without having it stored on your DS. :-)

#84031 - swimgod - Sat May 20, 2006 6:23 am

i know how to start a shoutcast server and can open the ports :P...
i might do that when im on trips :P
_________________

1x WII 2x remotes
2x NDS/L(FMv7-ORG:v4,FMv7-org:DSL)
1x GBAMP
2x 1gb (MicroDrive{typeII}&SanDisk{typeI})
1x SuperPass2
1x Supercard-CF

MoonShell skins

#84045 - Cooleo - Sat May 20, 2006 9:33 am

This is a great app (Even Though its Virgin Radio!)
Has anyone got ideas on how to change the URL of the stream?

Cooleo
_________________
Flashed DS and stuff for sale:
http://forum.gbadev.org/viewtopic.php?t=9642

#84049 - JaJa - Sat May 20, 2006 9:57 am

Zed0 wrote:
I just get little spurts of sound repeated a few times.
Using GBAMP.


I got that, you just have to wait a while for it to sort of sync up.
When the read and write # are in sync the stream plays best.

As for URL changing, just wait will you?
Either wait or do it yourself.
Be thankful that someone has put time and effort into something that you want.
_________________
LAWL HOOGE
My Blog

#84050 - MaHe - Sat May 20, 2006 10:11 am

Oh, and I doubt falcon!!! is the author of this :)
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#84055 - LS5 - Sat May 20, 2006 10:31 am

Excellent piece of software. Can't wait for a version that allows you to use different streams, since the current one sounds pretty crappy at 32kbps.

#84057 - Dark Knight ez - Sat May 20, 2006 11:16 am

tepples wrote:
Multiply each sample by a fixed-point number greater than 1.0, and then if a sample goes outside [-32000..32000], clip it to that range. If you want "tape-like" or "tube-like" soft saturation instead of harsh clipping, there is code for this in GSM Player.

Or you could let more hardware channels play the same sound/music. It's a less clean way to do things of course, but it avoids increasing the chance of clipping.
Haven't looked into the source, but if it only uses 2 channels to play, that would mean 14 other channels can be utilized to do the same as those two. If I recall my physics lessons correctly, that would give a volume boost of approximately 33%?

#84061 - Kturbo - Sat May 20, 2006 11:53 am

All I hear is a 3 sec loop for about 10 sec. Then another 3 sec loop... etc.

#84063 - ChronoDK - Sat May 20, 2006 11:59 am

This is really nice. Sound fun when Read and Write goes out of sync :-)

#84065 - daninski - Sat May 20, 2006 12:09 pm

works perfectly for me, it'd be nice if he could implement it into a music player as well eventually.

#84068 - Kturbo - Sat May 20, 2006 12:26 pm

Could my connection be too slow?

#84069 - Togmannen - Sat May 20, 2006 12:28 pm

Kturbo, post your hardware. Its more easy to help you then.
Myself I use GBAMP, and its works great, but there are some times its lags. I just reboot and its works perfect.

#84080 - Kturbo - Sat May 20, 2006 1:14 pm

DS - flashme v7. M3CF - 1GB CF card. Some kind of internet. :P not really sure, 2mbit/s? 10mbit/s wl-router.

#84081 - falcon!!! - Sat May 20, 2006 1:24 pm

MaHe wrote:
Oh, and I doubt falcon!!! is the author of this :)

who knows....

ANyway thanks for trusting me :?)

#84099 - daninski - Sat May 20, 2006 3:43 pm

Kturbo wrote:
DS - flashme v7. M3CF - 1GB CF card. Some kind of internet. :P not really sure, 2mbit/s? 10mbit/s wl-router.

i dont think your connection is too slow. what i find is that it takes a bit to sync up and will stay in sync once it's found it's feet untill i hog the net connection and it gets less speed and goes out of sync again. so if you try not having anything sharing the router and let the ds have the connection so its stable and leave it going for a few mins to see if it syncs itself up. i think stability of the speed of the connection is the most important thing for it. i cant imagine it has much of a buffer.

#84167 - Liquidnumb - Sat May 20, 2006 9:26 pm

Quote:

in the source it says
Code:
he=gethostbyname("vruk.sc.llnwd.net"); ..... ...... he->h_addr_list[0]


whats in the url that gives the server?...
is it a playlist or something :P (i have no clue...)


It looks like you just need to add a port.
Try vruk.sc.llnwd.net:12260

#84195 - vb_master - Sun May 21, 2006 2:48 am

Could not connect!
I'm guessing WEP is not supported :'(

WAIT - OMG THIS ROCKS!
_________________
Back.

#84213 - falcon!!! - Sun May 21, 2006 8:17 am

what flash card do you use?
I use gbamp and it rarely finish the buffer so the 2 # go together.
Should i try with m3?

#84217 - JaJa - Sun May 21, 2006 9:40 am

Liquidnumb wrote:
Quote:

in the source it says
Code:
he=gethostbyname("vruk.sc.llnwd.net"); ..... ...... he->h_addr_list[0]


whats in the url that gives the server?...
is it a playlist or something :P (i have no clue...)


It looks like you just need to add a port.
Try vruk.sc.llnwd.net:12260


Nope, the port is specified in a #define near the top of the source.
../dissonance/arm9/source/arm9_main.c
Code:
#define PORT 8010

Line 52 for those interested
So, change the hostname in line 330 and I would imagine the one in the GET / HTTP request too (line 324 HOST:) and you should be able to change the station.
I haven't been bothered to install wifilib to try this, and i only had a quick look at the source, but it should work.
_________________
LAWL HOOGE
My Blog

#84224 - Togmannen - Sun May 21, 2006 11:18 am

Here I found the guy who made the program:
http://www.1emulation.com/forums/index.php?showtopic=18201&st=0

Here can you ask him how to change radio and so on. If you don't want to registred there, just email him the question.

#84230 - quadomatic - Sun May 21, 2006 12:51 pm

anybody know how I can setup a radio station for myself so my ds can read the broadcast?

#84231 - daninski - Sun May 21, 2006 1:09 pm

it's shoutcast so i guess when you can eventually put in urls for them you can sett up a shoutcast from your puter.

#84269 - vb_master - Sun May 21, 2006 6:59 pm

JaJa wrote:
Liquidnumb wrote:
Quote:

in the source it says
Code:
he=gethostbyname("vruk.sc.llnwd.net"); ..... ...... he->h_addr_list[0]


whats in the url that gives the server?...
is it a playlist or something :P (i have no clue...)


It looks like you just need to add a port.
Try vruk.sc.llnwd.net:12260


Nope, the port is specified in a #define near the top of the source.
../dissonance/arm9/source/arm9_main.c
Code:
#define PORT 8010

Line 52 for those interested
So, change the hostname in line 330 and I would imagine the one in the GET / HTTP request too (line 324 HOST:) and you should be able to change the station.
I haven't been bothered to install wifilib to try this, and i only had a quick look at the source, but it should work.
Port 12260 is down, and port 8010 doesn't work.
_________________
Back.

#84275 - JaJa - Sun May 21, 2006 7:31 pm

Yeah, 8180 was when I was messing around with it.
I think port 12250 is valid too.
_________________
LAWL HOOGE
My Blog

#84280 - spinal_cord - Sun May 21, 2006 7:40 pm

It could do with being a bit louder.
_________________
I'm not a boring person, it's just that boring things keep happening to me.
Homepage

#84297 - TheChuckster - Sun May 21, 2006 8:59 pm

I just modified it to change the station to Digitally Imported. God, what a mess. It connects fine and displays the icy info. Then I hear small half second blips of trance music with gaps in between. I guess the 96 kbps is killing the buffer...

#84303 - vb_master - Sun May 21, 2006 9:12 pm

TheChuckster wrote:
I just modified it to change the station to Digitally Imported. God, what a mess. It connects fine and displays the icy info. Then I hear small half second blips of trance music with gaps in between. I guess the 96 kbps is killing the buffer...
Post please!
_________________
Back.

#84304 - TheChuckster - Sun May 21, 2006 9:15 pm

It's nothing difficult.

Line 52:
#define PORT 80

Lines 323-326:
char* header = "GET /stream/1003 HTTP/1.1\r\n\
Host: uvox1-dls-slot3l.stream.aol.com\r\n\
User-Agent: Dissonance/0.2\r\n\
Icy-Metadata: 0\r\n\r\n";

Line 330:
he=gethostbyname("uvox1-dls-slot3l.stream.aol.com");

Line 68:
u32 globSampleRate = 44100;

#84306 - vb_master - Sun May 21, 2006 9:25 pm

TheChuckster wrote:
It's nothing difficult.

Line 52:
#define PORT 80

Lines 323-326:
char* header = "GET /stream/1003 HTTP/1.1\r\n\
Host: uvox1-dls-slot3l.stream.aol.com\r\n\
User-Agent: Dissonance/0.2\r\n\
Icy-Metadata: 0\r\n\r\n";

Line 330:
he=gethostbyname("uvox1-dls-slot3l.stream.aol.com");

Line 68:
u32 globSampleRate = 44100;
I can't compile. AKA I don't have anything for compiling on my computers.
_________________
Back.

#84309 - TheChuckster - Sun May 21, 2006 9:27 pm

Believe me, it's not worth hearing at all. It sounds like a CD skipping really badly -- nothing musical.

#84312 - tepples - Sun May 21, 2006 9:35 pm

vb_master wrote:
I can't compile. AKA I don't have anything for compiling on my computers.

http://www.devkitpro.org/
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#84314 - falcon!!! - Sun May 21, 2006 9:42 pm

lol

#84528 - swimgod - Tue May 23, 2006 3:42 am

i had devkit pro,
and i (tried) to install the wifilib,
both from akkit.org and (now that its in the cvs)
off of devkit pro's website...

i get this error...
Code:
> "make"
"make" -C arm7
make[1]: Entering directory `/f/dissonance/arm7'
make[2]: `/f/dissonance/dissonance.arm7' is up to date.
make[1]: Leaving directory `/f/dissonance/arm7'
"make" -C arm9
make[1]: Entering directory `/f/dissonance/arm9'
arm9_main.c
arm-elf-gcc -MMD -MP -MF /f/dissonance/arm9/build/arm9_main.d -g -Wall -O2 -mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -I/f/dissonance/arm9/include -I/f/dissonance/arm9/build -I/c/devkitPro/libnds/include -I/c/devkitPro/libnds/include -I/f/dissonance/arm9/build  -DARM9 -fsigned-char -DFPM_ARM -DASO_INTERLEAVE1 -DASO_IMDCT -DOPT_ACCURACY -c /f/dissonance/arm9/source/arm9_main.c -o arm9_main.o
In file included from f:/dissonance/arm9/source/arm9_main.c:44:
f:/dissonance/arm9/include/sys/socket.h:45: warning: useless storage class specifier in empty declaration
f:/dissonance/arm9/source/arm9_main.c: In function 'Timer_50ms':
f:/dissonance/arm9/source/arm9_main.c:85: warning: implicit declaration of function 'Wifi_Timer'
f:/dissonance/arm9/source/arm9_main.c: In function 'arm9_fifo':
f:/dissonance/arm9/source/arm9_main.c:96: warning: implicit declaration of function 'Wifi_Sync'
f:/dissonance/arm9/source/arm9_main.c: In function 'initDS':
f:/dissonance/arm9/source/arm9_main.c:231: error: 'WIFIINIT_OPTION_USELED' undeclared (first use in this function)
f:/dissonance/arm9/source/arm9_main.c:231: error: (Each undeclared identifier is reported only once
f:/dissonance/arm9/source/arm9_main.c:231: error: for each function it appears in.)
f:/dissonance/arm9/source/arm9_main.c:242: warning: implicit declaration of function 'Wifi_SetSyncHandler'
f:/dissonance/arm9/source/arm9_main.c:248: warning: implicit declaration of function 'Wifi_CheckInit'
f:/dissonance/arm9/source/arm9_main.c: In function 'wifi_connect':
f:/dissonance/arm9/source/arm9_main.c:260: warning: implicit declaration of function 'Wifi_AutoConnect'
f:/dissonance/arm9/source/arm9_main.c: In function 'sound_start':
f:/dissonance/arm9/source/arm9_main.c:286: warning: unused variable 'right'
f:/dissonance/arm9/source/arm9_main.c: In function 'main':
f:/dissonance/arm9/source/arm9_main.c:318: warning: unused variable 'cnt'
make[2]: *** [arm9_main.o] Error 1
make[1]: *** [build] Error 2
make[1]: Leaving directory `/f/dissonance/arm9'
"make": *** [arm9/dissonance.elf] Error 2

> Process Exit Code: 2
> Time Taken: 00:07

im guessing it relates to the wifi lib...
so whats wrong?...
_________________

1x WII 2x remotes
2x NDS/L(FMv7-ORG:v4,FMv7-org:DSL)
1x GBAMP
2x 1gb (MicroDrive{typeII}&SanDisk{typeI})
1x SuperPass2
1x Supercard-CF

MoonShell skins

#84538 - Grupstra - Tue May 23, 2006 5:29 am

I started from scratch, learned how tog et devkitpro, install it, as well sa wifilib, set everything in the right spot, and cracked into my first ever adventure in the world of making my own .nds files.

I had a lot of the same problems the above poster had, as far as errors in making anything. I found I had to go in and change a few things to match up to the version of the lib I was using (at least, It think this was the problem. It mostly consisted of dropping a letter from the .a files as stephen mentioned, and changing the file structure a bit, it was looking in the wrong spot for some files, so I just had to point it up one directory, since this was how it was set up for me).

In the end, I finally got it to output the .nds files. I even made it build the .nds file without me editing it at first, then ran it on my DS to make sure it worked before i changed anything. Worked like a charm.

However, I edited the file to point to gaming fm's classic console channel, changed the proper lines, for both address adn port, and such, built the .nds, however, it fails to play anything. It says it connects to the wifi settings, and then the text quickly disappears, leaving me with a black screen.

I'm going to keep tinkering, as this is the most I've ever accomplished, and I'm excited to learn more about this all.

#84539 - Grupstra - Tue May 23, 2006 5:41 am

I went and made the changes Chuckster made, and he's correct, what comes out is garbage.

But that also means I'm able to make it a different station, so it's not me thats not letting the statiosn I want play. I guess Theres something specific to the station I don't know how to change yet, that I don't know about, so any ideas (cjuckster, maybe you know?) as to what I'm not changing that I should, would be great. Thanks guys.

#84994 - daninski - Fri May 26, 2006 9:06 am

maybe you need to adjust the sync to suit the different bit rated streams. it seems very sensitive. has anyone managed to change the radio station yet?

#85001 - Kturbo - Fri May 26, 2006 9:38 am

I, still, haven't manage to get the default radio station to play properly. :( It just keeps repeating the same all the time.

#85011 - TheChuckster - Fri May 26, 2006 12:00 pm

No, I have no idea how to fix the garbage output from DI.

#85135 - Bobshoe - Sat May 27, 2006 10:45 am

When I try and compile I get

basename: too many arguments
Try `basename --help' for more information.
make -C arm7
make[1]: Entering directory `/c/Documents and Settings/Matthew/Desktop/dissonanc
e/arm7'
make[2]: *** /c/Documents: Invalid request code. Stop.
make[1]: *** [build] Error 2
make[1]: Leaving directory `/c/Documents and Settings/Matthew/Desktop/dissonance
/arm7'
make: *** [arm7/.elf] Error 2

Any help?

#85142 - JaJa - Sat May 27, 2006 12:22 pm

DevKitPro can't go into a directory whos path has spaces in.
Many people place it in C:\DevKitPro or something.
_________________
LAWL HOOGE
My Blog

#85157 - Critical_Impact - Sat May 27, 2006 3:51 pm

Liek i used it itspretty awesome but it drops out a lot so liek get it yawl

#85188 - swimgod - Sat May 27, 2006 7:13 pm

i got it to build and i started a shoutcast server on my computer,
then started a dj computer on another computer...

it works...
but it drops out every second...
shoutcast log wrote:

<05/27/06@14:10:21> [dest: ***.***.***.***] starting stream (UID: 35)[L: 10]{A: Dissonance/0.2}(P: 7)
<05/27/06@14:10:23> [dest: ***.***.***.***] connection closed (63 seconds) (UID: 26)[L: 9]{Bytes: 16384}(P: 0)
<05/27/06@14:10:27> [dest: ***.***.***.***] starting stream (UID: 36)[L: 10]{A: Dissonance/0.2}(P: 0)
<05/27/06@14:10:29> [dest: ***.***.***.***] connection closed (63 seconds) (UID: 27)[L: 9]{Bytes: 16384}(P: 9)
<05/27/06@14:10:33> [dest: ***.***.***.***] starting stream (UID: 37)[L: 10]{A: Dissonance/0.2}(P: 8)
<05/27/06@14:10:35> [dest: ***.***.***.***] connection closed (63 seconds) (UID: 28)[L: 9]{Bytes: 24576}(P: 10)
<05/27/06@14:10:36> [dest: ***.***.***.***] starting stream (UID: 38)[L: 10]{A: Dissonance/0.2}(P: 9)
<05/27/06@14:10:42> [dest: ***.***.***.***] starting stream (UID: 39)[L: 11]{A: Dissonance/0.2}(P: 10)
<05/27/06@14:10:47> [dest: ***.***.***.***] connection closed (63 seconds) (UID: 29)[L: 10]{Bytes: 16384}(P: 1)
<05/27/06@14:10:48> [dest: ***.***.***.***] starting stream (UID: 40)[L: 11]{A: Dissonance/0.2}(P: 1)
<05/27/06@14:10:53> [dest: ***.***.***.***] connection closed (63 seconds) (UID: 30)[L: 10]{Bytes: 16384}(P: 2)
<05/27/06@14:10:55> [dest: ***.***.***.***] starting stream (UID: 41)[L: 11]{A: Dissonance/0.2}(P: 2)
<05/27/06@14:10:59> [dest: ***.***.***.***] connection closed (63 seconds) (UID: 31)[L: 10]{Bytes: 16384}(P: 3)
<05/27/06@14:11:05> [dest: ***.***.***.***] connection closed (63 seconds) (UID: 32)[L: 9]{Bytes: 16384}(P: 4)
<05/27/06@14:11:11> [dest: ***.***.***.***] connection closed (63 seconds) (UID: 33)[L: 8]{Bytes: 16384}(P: 5)
<05/27/06@14:11:17> [dest: ***.***.***.***] connection closed (63 seconds) (UID: 34)[L: 7]{Bytes: 16384}(P: 6)



why does it do this :|


p.s. how posible would it be to create a moonshell plugin that has shoutcast :D...
that would be so cool :D...
maybe you can make it so its a file extention and the file has the url and port and when you click on it, it will load the station?

that would so kickass :D
_________________

1x WII 2x remotes
2x NDS/L(FMv7-ORG:v4,FMv7-org:DSL)
1x GBAMP
2x 1gb (MicroDrive{typeII}&SanDisk{typeI})
1x SuperPass2
1x Supercard-CF

MoonShell skins

#85192 - JaJa - Sat May 27, 2006 7:53 pm

Maybe you have misconfigured the server?
Either the TTL, or timeout or something.
_________________
LAWL HOOGE
My Blog

#85196 - swimgod - Sat May 27, 2006 8:19 pm

JaJa wrote:
Maybe you have misconfigured the server?
Either the TTL, or timeout or something.

well i basicly left it at its default,
(changing only the password :P)

i have a feeling its because the app was designed around that one station,
and maybe that station has something diffrent then normal defaults?

edit:
if also noticed that in winamp the DSP plugin for windows will only go to 24kbps as the minimum...
but on shoutcast.com i find some stations lower then that...
how is this posible?
:(
maybe thats why my station goes in and out...
p.s. the default station does NOT work for me anymore i get icy error :(
_________________

1x WII 2x remotes
2x NDS/L(FMv7-ORG:v4,FMv7-org:DSL)
1x GBAMP
2x 1gb (MicroDrive{typeII}&SanDisk{typeI})
1x SuperPass2
1x Supercard-CF

MoonShell skins

#85430 - swimgod - Tue May 30, 2006 5:01 am

sorry for the double post :P,
but i have started adding features to this app because i think its a great idea :D

i have succesfully done these things (mods) to this app
Code:

-made the server a define, (you don't have to search through the code to change the server :P)
-made the touch screen have a black background
-turned off the touch screens backlight (stole from moonshell ;) )
-made more detailed errors,(so you know whats going on :P
-added a disconnect counter :P(this was for testing because as i said before my ds keeps losing my computers signal :()
-if server is not found then it will wait 5 seconds and try again (say you have flaky internet or the server happened to be down for a second, wouldn't you want to just wait 5 seconds instead of turning off your ds and back on waiting for the ds to find and registar its wifi again!)


to be honest i just wanted to learn how to code for ds,
and i figured this project is cool and has its source code avalible :)

if anyone wants a copy of my version of dissonance
pm me with your email :),
and if you don't have a way to compile it you can also send me the radio station you want in the app :P


EDIT!:
i got it working completly with no stops :),
i found out the windows shoutcast server is faulty when it comes to this :)...

i am running a shoutcast server on my linux comp and also the dj :P
works fine :)

NEVER STOPPED...
ill post a fresh copy of my version when i get on my regular computer :P
_________________

1x WII 2x remotes
2x NDS/L(FMv7-ORG:v4,FMv7-org:DSL)
1x GBAMP
2x 1gb (MicroDrive{typeII}&SanDisk{typeI})
1x SuperPass2
1x Supercard-CF

MoonShell skins

#90397 - daninski - Fri Jun 30, 2006 3:00 am

is this still ticking along? i'm still looking forward to playlists...

#90439 - HtheB - Fri Jun 30, 2006 7:09 am

yeah me too....
:(

#90743 - Ninja - Sun Jul 02, 2006 4:15 am

Glad you guys like it. =) I just want to mention that my site has moved. On the new site, you can see a bit of what I'm doing.

I would like to ask for your patience for just a little longer. I have been sick the last couple of days, and I just moved halfway across the continent the week before. I spent my day today building debian packages for devkitarm, libnds, libgba, and libdswifi. (I have never built a deb from scratch before, so it took a while). But this means that I can now quickly and easily install devkits on whatever computers I choose. (If anyone would like the debs, let me know via email. matter.grey@gmail.com) Actually, most comments are preferred via email.

I also want to mention that my playlist parsing modules are finished, and I am rewriting a good deal of my network and sound functions to be less cludgey. The plan at the moment is to fix the code so that everything is a module and there are no more globals. The code reorganization is about 80% done.

As for enhanced volume... I'll give you a quickie on how to do that, as changing the station has already been covered. In mp3.c, change the scale function to this, for dramatically improved volume.

Code:
inline
signed int scale(mad_fixed_t sample)
{
   /* round */
   sample += (1L << (MAD_F_FRACBITS - 16));
   
   /* scale, thanks to Boris von Loesch */
   sample = sample << 2;

   /* clip */
   if (sample >= MAD_F_ONE)
      sample = MAD_F_ONE - 1;
   else if (sample < -MAD_F_ONE)
      sample = -MAD_F_ONE;

   /* quantize */
   return sample >> (MAD_F_FRACBITS + 1 - 16);
}


I HOPE to have a new release out in less than a week. When that's out, most of the current issues should be resolved, and it will support playlists.

EDIT: Oh, and after 0.3, I am thinking about making my SVN repository public, but I hesitate to do so at the moment, with the sweeping architecture changes that I am making. The architecture should be a lot more stable after this release though, and much less prone to breakage.

And don't expect to see a moonshell plugin for me, as I am coding a standalone internet radio client with an emphasis on simplicity. But it shouldn't be that hard to port my work to moonshell after 0.3 is out. I love Moonshell, and I have benefitted from some of their work. But they are coding XMMS, and I want to code mpg321. That's the difference. (Although I want to code a very cool mpg321).

#90784 - Durandle - Sun Jul 02, 2006 12:32 pm

Sounds cool :)

Am I missing something here... whats Moonshell got to do with XMMS?

#90986 - TJ - Mon Jul 03, 2006 8:56 pm

He is making a comparison about the relative complexities and scopes of the two different projects.

#101022 - HtheB - Fri Sep 01, 2006 7:03 pm

Well Ninja..

any updates??? :(

#101024 - Vasco - Fri Sep 01, 2006 7:10 pm

With this, can i listen to any radio on the web ? because there are many and many radios that i like to listen...

#101027 - falcon!!! - Fri Sep 01, 2006 8:11 pm

You'd better use Dsorganize ;)

#101041 - Vasco - Fri Sep 01, 2006 9:45 pm

DsOrganize lets me hear online radios ? since when ? didnt know...

#101058 - HtheB - Fri Sep 01, 2006 10:55 pm

falcon!!! wrote:
You'd better use Dsorganize ;)
but uh.. I allready use DSorganise...

what exactly do you mean by this????

#101073 - TJ - Sat Sep 02, 2006 2:00 am

Just put the pls file for the stream on the card, and play it with DSOrganize. It works pretty well, but you generally need to use a lower bitrate stream.

#101076 - Iteo - Sat Sep 02, 2006 3:00 am

Can someone provide my with the code outline to do radio on ds organize? Thanks a million.
_________________
Homebrewer! Programmer! Graphic designer!
All in one for lots of touching is good fun!

#101090 - falcon!!! - Sat Sep 02, 2006 8:16 am

Vasco wrote:
DsOrganize lets me hear online radios ? since when ? didnt know...


put pls files from this or from this site on card and open with dsorganize.

try this:
http://www.shoutcast.com/sbin/shoutcast-playlist.pls?rn=277392&file=filename.pls
it's perfect. no slowdown.

#101091 - HtheB - Sat Sep 02, 2006 8:34 am

tnx falcon!!! ^^

I didnt know that :D

This radio station is so coooool!!

Fresh FM:
http://www.fresh.fm/media/audio/ListenHigh.pls

(it's mostly techno, dance music.. but offcourse it has all kind of musics)

oh and NO slow downs! :)

#101112 - Vasco - Sat Sep 02, 2006 6:54 pm

Does someone know of any Anime station ? with only musics from anime and mangas...

Oh and if we can get the ds to stream online radios, maybe stream tv, isnt a bad ideia...cell phones can get it... because that way, i could see so many channels that arent on my country (Portugal) like american cartoonnetwork (naruto,onepiece,bleach on september...)

#101181 - M3d10n - Sun Sep 03, 2006 6:10 pm

Vasco wrote:
Does someone know of any Anime station ? with only musics from anime and mangas...

Oh and if we can get the ds to stream online radios, maybe stream tv, isnt a bad ideia...cell phones can get it... because that way, i could see so many channels that arent on my country (Portugal) like american cartoonnetwork (naruto,onepiece,bleach on september...)


Google for shoutcast. It's fairly easy to setup a streaming station from your own home, so you can stream whatever files you got in your computer.