Searched refs:gsformat (Results 1 - 2 of 2) sorted by relevance
/haiku/src/kits/game/ |
H A D | SimpleGameSound.cpp | 148 gs_audio_format gsformat; local 170 memset(&gsformat, 0, sizeof(gs_audio_format)); 171 media_to_gs_format(&gsformat, &mformat.u.raw_audio); 176 char * buffer = new char[gsformat.buffer_size]; 177 uchar * data = new uchar[frames * gsformat.channel_count]; 181 memset(buffer, 0, gsformat.buffer_size); 185 int64 position = framesTotal * gsformat.channel_count; 186 for (int32 i = 0; i < (int32)gsformat.buffer_size; i++) 193 gsformat.format = gs_audio_format::B_GS_U8; 195 error = Init(data, frames, &gsformat); [all...] |
H A D | FileGameSound.cpp | 359 gs_audio_format gsformat; local 360 media_to_gs_format(&gsformat, &playFormat.u.raw_audio); 365 fBufferSize = gsformat.buffer_size; 371 if (gsformat.format == gs_audio_format::B_GS_U8) 376 fFrameSize = gsformat.channel_count * get_sample_size(gsformat.format); 381 error = Device()->CreateBuffer(&sound, this, &gsformat);
|
Completed in 31 milliseconds