2 registered members (monk12, Quad),
830
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
stereo audio from memory
#472487
04/30/18 18:08
04/30/18 18:08
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
Hey there! I'd like to open/play a stereo audio file from memory (for ingame music). It sounds trivial but everything I've tested didn't work so far. snd_play doesn't support stereo files and media_play for some reason is unable to stream from memory.
Is there any other way to accomplish this?
regrads, Kartoffel
POTATO-MAN saves the day! - Random
|
|
|
Re: stereo audio from memory
[Re: Superku]
#472494
04/30/18 18:29
04/30/18 18:29
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
okay, I'll take a look at them. thanks for the recommendations.
POTATO-MAN saves the day! - Random
|
|
|
Re: stereo audio from memory
[Re: txesmi]
#472500
05/01/18 08:16
05/01/18 08:16
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
That's what I'm afraid of. But interesting to hear that you managed to make it work that way.
POTATO-MAN saves the day! - Random
|
|
|
Re: stereo audio from memory
[Re: Kartoffel]
#472538
05/03/18 14:21
05/03/18 14:21
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
As far as I know there's a way to automatically link all dll functions, right? Does anyone know how this works? I don't want to spend a ton of time to link all functions of my wrapper manually. Edit: I did it manually now but I can't seem to link a single function even though I did it the same way I usually do Edit2: oops, I didn't see that irrklang had some dependencies (the irrklang dll, duh). The linking works now.
Last edited by Kartoffel; 05/03/18 16:31.
POTATO-MAN saves the day! - Random
|
|
|
Re: stereo audio from memory
[Re: Superku]
#472539
05/03/18 18:11
05/03/18 18:11
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
1) Get an irrKlang license for 65€. Writing a wrapper for that is easy and quick. Well, I wouldn't say it was that quick and easy, but definitely more convinient than writing everything using low level audio APIs. Anyway, looks like everything is working right now. Music files are decrypted at runtime (not during playback, though) and can be loaded straight from memory into irrKlang. Thanks again.
POTATO-MAN saves the day! - Random
|
|
|
|