Sound capabilities of the Firebee

All things related to the Atari Coldfire Project

Moderators: Mathias, Mug UK, [ProToS], moondog/.tSCc., Galvez, Moderator Team

Sound capabilities of the Firebee

Postby simonsunnyboy » Sun Jun 17, 2012 4:47 pm

Which known Atari audio devices are available on the Firebee?
According to a Wiki atleast the YM2149? Is this correct?

How about STE compatible DMA audio or the Falcon Audio subsystem?
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org
User avatar
simonsunnyboy
Moderator
Moderator
 
Posts: 4305
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany

Re: Sound capabilities of the Firebee

Postby Orion_ » Sun Jun 17, 2012 5:24 pm

I don't know about ym2149, but the Falcon DMA is fully working using xbios function !
`^-._ website - twitter - vimeo - Atari STe 4MB + HxC SD Floppy :: Falcon CT63 @90Mhz 14/128MB + CF2IDE + PS/2 adapter + Hydra Ethernet !
User avatar
Orion_
Captain Atari
Captain Atari
 
Posts: 185
Joined: Sat Jan 10, 2004 12:20 pm
Location: Perpignan

Re: Sound capabilities of the Firebee

Postby simonsunnyboy » Sun Jun 17, 2012 5:48 pm

I have never used the Falcon XBIOS routines for audio sofar. Is there a guide or manual available about its capabilities beyond what I can find in tos.hyp?
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org
User avatar
simonsunnyboy
Moderator
Moderator
 
Posts: 4305
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany

Re: Sound capabilities of the Firebee

Postby joska » Sun Jun 17, 2012 5:56 pm

The Firebee has a YM that's fully (and from what I can tell perfectly) emulated in the FPGA. It also has STE DMA sound thanks to some software trickery (transparent to the user). There is no Falcon sound *hardware*, but there is XBIOS support for the AC97 soundchip. This XBIOS is GSXB compatible. See http://assemsoft.atari.org for docs on GSXB.
Jo Even

Firebee - Milan060 - Falcon040 - Falcon030 - FreeMiNT - XaAES - MIST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
joska
Atari God
Atari God
 
Posts: 1836
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway

Re: Sound capabilities of the Firebee

Postby simonsunnyboy » Sun Jun 17, 2012 6:02 pm

Having the YM sounds great already :)

"Software" trickery for the STE DMA sound? Does it intercept reads and writes to the associated hardware registers?
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org
User avatar
simonsunnyboy
Moderator
Moderator
 
Posts: 4305
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany

Re: Sound capabilities of the Firebee

Postby Orion_ » Sun Jun 17, 2012 6:17 pm

This is what I use for sound:
Code: Select all
Init:
   if (Locksnd() != 1)
      return (false);

   SoundBuffer = Mxalloc(SOUND_BUFFER_SIZE, MX_STRAM);   // Malloc in STRam !
   if (!SoundBuffer)
   {
      Unlocksnd();
      return (false);
   }

   Settracks(0,0);
   Setmontracks(0);
   Setmode(MODE_MONO);
   Devconnect(DMAPLAY, DAC, CLK_25M, CLK_25K, NO_SHAKE);   // 24585Hz

   Setbuffer(PLAY, SoundBuffer, &SoundBuffer[SOUND_BUFFER_SIZE]);
   Buffoper(PLAY_ENABLE | PLAY_REPEAT);   // Play in Loop -> Ring Buffer

   return (true);


DeInit:
   Buffoper(0);
   Mfree(SoundBuffer);
   Unlocksnd();
`^-._ website - twitter - vimeo - Atari STe 4MB + HxC SD Floppy :: Falcon CT63 @90Mhz 14/128MB + CF2IDE + PS/2 adapter + Hydra Ethernet !
User avatar
Orion_
Captain Atari
Captain Atari
 
Posts: 185
Joined: Sat Jan 10, 2004 12:20 pm
Location: Perpignan

Re: Sound capabilities of the Firebee

Postby joska » Sun Jun 17, 2012 6:20 pm

simonsunnyboy wrote:"Software" trickery for the STE DMA sound? Does it intercept reads and writes to the associated hardware registers?


If I understand this correctly there are dummy registers in the FPGA that are monitored by an interrupt driven routine. The AC97 is then set up accordingly when these registers are written to.
Jo Even

Firebee - Milan060 - Falcon040 - Falcon030 - FreeMiNT - XaAES - MIST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
joska
Atari God
Atari God
 
Posts: 1836
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway

Re: Sound capabilities of the Firebee

Postby simonsunnyboy » Sun Jun 17, 2012 6:27 pm

Thanks for the explanation! So compatible HW registers are there but the actual processing is done by the modern day IC part and there is no audio generating circuit otherwise designed into the system?

@Orion_: Thanks for sharing your code, i have also taken a look at Ozk's website. It seems to me that this is the new interface to allow hardware independant audio access? So that an additional hardware driver has to provided? Some ES1371 for the Hades with PCI card and something AC97 compatible for the Firebee?
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org
User avatar
simonsunnyboy
Moderator
Moderator
 
Posts: 4305
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany

Re: Sound capabilities of the Firebee

Postby Orion_ » Sun Jun 17, 2012 6:37 pm

I don't know about GSXB, I'm just using xbios functions, and this is working on both falcon and firebee without modification
`^-._ website - twitter - vimeo - Atari STe 4MB + HxC SD Floppy :: Falcon CT63 @90Mhz 14/128MB + CF2IDE + PS/2 adapter + Hydra Ethernet !
User avatar
Orion_
Captain Atari
Captain Atari
 
Posts: 185
Joined: Sat Jan 10, 2004 12:20 pm
Location: Perpignan

Re: Sound capabilities of the Firebee

Postby simonsunnyboy » Sun Jun 17, 2012 6:46 pm

Oh really. Now you see why asking for something beyond tos.hyp as this only lists a couple of calls as being available on the Falcon. My question remains valid: is there any combined documentation available for the Falcon Sound XBIOS?
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org
User avatar
simonsunnyboy
Moderator
Moderator
 
Posts: 4305
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany

Re: Sound capabilities of the Firebee

Postby joska » Sun Jun 17, 2012 7:05 pm

Jo Even

Firebee - Milan060 - Falcon040 - Falcon030 - FreeMiNT - XaAES - MIST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
joska
Atari God
Atari God
 
Posts: 1836
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway

Re: Sound capabilities of the Firebee

Postby simonsunnyboy » Sun Jun 17, 2012 7:21 pm



Ahh thanks, I didn't have a deep look yet but it is probably exactly what I have been missing sofar. :mrgreen:
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org
User avatar
simonsunnyboy
Moderator
Moderator
 
Posts: 4305
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany

Re: Sound capabilities of the Firebee

Postby nativ » Sun Jun 17, 2012 8:41 pm

There are the XBIOS Docs relating to Milan sound somewhere... I recall downloading some thing about it all... few years back!
Atari STFM 512 / STe 4MB / Mega ST+DSP / Falcon 4MB 16Mhz 68882 - DVD/CDRW/ZIP/DAT - FDI / Jaguar / Lynx 1&2 / 7800 / 2600 / XE 130+SD Card // Sega Dreamcast / Mega2+CD2 // Apple G4

http://soundcloud.com/nativ ~ http://soundcloud.com/nativ-1 ~ http://soundcloud.com/knot_music
http://soundcloud.com/push-sounds ~ http://soundcloud.com/push-records
User avatar
nativ
Fuji Shaped Bastard
Fuji Shaped Bastard
 
Posts: 4068
Joined: Mon Jul 30, 2007 10:26 am
Location: South West, UK

Re: Sound capabilities of the Firebee

Postby joska » Mon Jun 18, 2012 7:02 am

simonsunnyboy wrote:Thanks for the explanation! So compatible HW registers are there but the actual processing is done by the modern day IC part and there is no audio generating circuit otherwise designed into the system?


Correct. The only thing that *generates* audio in the FPGA is the YM. DMA sound is done by the AC97 and the ColdFire DMA.
Jo Even

Firebee - Milan060 - Falcon040 - Falcon030 - FreeMiNT - XaAES - MIST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
joska
Atari God
Atari God
 
Posts: 1836
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway


Return to FireBee

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests