SoundID(#Sound)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by mindplay.

I need a pointer to the sample data of a #Sound, e.g. Address=SoundID(#Sound) or something similar, so that I can access the sample data.

For this, a SoundFormat(#Sound) function would probably also be needed, which returns a bitmask describing the format, e.g. wether it's mono/stereo, and wether it's 8-bit or 16-bit.