Home
last modified time | relevance | path

Searched refs:gsformat (Results 1 – 2 of 2) sorted by relevance

/haiku/src/kits/game/
H A DSimpleGameSound.cpp148 gs_audio_format gsformat; in Init() local
170 memset(&gsformat, 0, sizeof(gs_audio_format)); in Init()
171 media_to_gs_format(&gsformat, &mformat.u.raw_audio); in Init()
176 char * buffer = new char[gsformat.buffer_size]; in Init()
177 uchar * data = new uchar[frames * gsformat.channel_count]; in Init()
181 memset(buffer, 0, gsformat.buffer_size); in Init()
185 int64 position = framesTotal * gsformat.channel_count; in Init()
186 for (int32 i = 0; i < (int32)gsformat.buffer_size; i++) in Init()
193 gsformat.format = gs_audio_format::B_GS_U8; in Init()
195 error = Init(data, frames, &gsformat); in Init()
[all …]
H A DFileGameSound.cpp359 gs_audio_format gsformat; in Init() local
360 media_to_gs_format(&gsformat, &playFormat.u.raw_audio); in Init()
365 fBufferSize = gsformat.buffer_size; in Init()
371 if (gsformat.format == gs_audio_format::B_GS_U8) in Init()
376 fFrameSize = gsformat.channel_count * get_sample_size(gsformat.format); in Init()
381 error = Device()->CreateBuffer(&sound, this, &gsformat); in Init()