ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.com Rules - Search - Register - Login curved edge
Folder Forum Index > Other Ports > Support for new Music Card (DSP based)
Support for new Music Card (DSP based)
  Author    Thread Reply to topic
NovaCoder



Joined: 23 Sep 2009
Posts: 74
Support for new Music Card (DSP based) 

Hiya,

This is a bit of a strange request but anyway...

I want to add support for a new (proprietary) music card to ScummVM. What I need to do is grab the OGG/FLAC music data from memory and pipe it to the music card (eg I don't want it mixed internally by ScummVM with the SFX data).

I will then pass the SFX data from ScummVM into the music card for mixing externally.

Does anyone know whereabouts in the code I should be looking to get at the compressed music data directly?

Thanks Very Happy

 Reply with quote  
Post Wed Apr 23, 2014 2:33 am 
 View user's profile Send private message
eriktorbjorn
ScummVM Developer


Joined: 31 Oct 2005
Posts: 3284
 

The MP3/FLAC/etc decoders all live in the audio/decoders folder, but since they're all expected to implement a "decode N samples into this buffer" method, perhaps it's already too late at this point?

If you just want to cover the case where ScummVM uses compressed files to simulate audio CD tracks (so it already shouldn't make any assumptions of going through the ScummVM mixer), I suppose it would be possible to add another backend to backends/audiocd.

 Reply with quote  
Post Wed Apr 23, 2014 3:54 am 
 View user's profile Send private message
NovaCoder



Joined: 23 Sep 2009
Posts: 74
 

OK thanks, I'll have to see if the music card supports the preferred approach (which will basically mimic what the OGG/FLAC libraries do).

Otherwise I'll check out the audiocd stuff.

Very Happy

 Reply with quote  
Post Wed Apr 23, 2014 6:41 am 
 View user's profile Send private message
  Display posts from previous:      
Reply to topic

Forum Jump:
 



Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge