Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Playing raw audio data from a DDP  (Read 2462 times)

0 Members and 1 Guest are viewing this topic.

haxifix

  • Newbie
  • *
  • Posts: 1
    • View Profile
Playing raw audio data from a DDP
« on: January 12, 2013, 06:37:16 pm »
I was wondering if the SFML 2 audio library could play raw audio data from a DDP fileset.  Does anyone know if this is possible?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
Re: Playing raw audio data from a DDP
« Reply #1 on: January 12, 2013, 07:11:54 pm »
From the for everyone publicly available and easy to read documentation:
Quote
bool sf::SoundBuffer::loadFromMemory (const void * data, std::size_t sizeInBytes)
   
Load the sound buffer from a file in memory.

Here is a complete list of all the supported audio formats: ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64.

It's now your job to determine if that DDP file matches any of the supported formats. This can either be done, by reading more about the format or simply testing it. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/