M
MightyJo
Guest
I am trying to write a RAW signed 16-bit PCM audio file into a buffer but for some reason it just won't play.
Here's what I did:
Create event
Step event
The file is named test.raw and is located in the project's "Included Files" folder.
I've been searching the web and scratching my head for days, please help.
Here's what I did:
Create event
Code:
audio = 0;
start = 1;
audiobuff = buffer_create(5643776, buffer_grow, 2);
Step event
Code:
if start = 1
{
start = 2;
buffer_seek(audiobuff, buffer_seek_start, 0);
buffer_write(audiobuff, buffer_s16, working_directory + "test.raw");
audio = audio_create_buffer_sound(audiobuff, buffer_s16, 44100, 0, 1411200, audio_stereo);
audio_play_sound(audio, 1, true);
}
I've been searching the web and scratching my head for days, please help.