Lines Matching refs:item
452 playing_sound* item = (playing_sound*)malloc(sizeof(playing_sound));
453 if (item == NULL)
456 item->current_offset = 0;
457 item->sound = sound;
458 item->id = atomic_add(&sCurrentPlayID, 1);
459 item->delta = 0;
460 item->rate = 0;
461 item->volume = withVolume;
464 free(item);
469 item->next = fPlayingSounds;
470 fPlayingSounds = item;
474 return item->id;
485 playing_sound *item = fPlayingSounds;
486 while (item) {
487 if (item->id == id) {
488 item->volume = newVolume;
493 item = item->next;
508 playing_sound *item = fPlayingSounds;
509 while (item) {
510 if (item->id == id) {
515 item = item->next;
531 playing_sound* item = fPlayingSounds;
533 while (item != NULL) {
534 if (item->id == id) {
535 *link = item->next;
536 sem_id waitSem = item->wait_sem;
537 item->sound->ReleaseRef();
538 free(item);
548 link = &item->next;
549 item = item->next;
564 playing_sound* item = fPlayingSounds;
565 while (item != NULL) {
566 if (item->id == id) {
567 sem_id waitSem = item->wait_sem;
569 waitSem = item->wait_sem = create_sem(0, "wait for sound");
575 item = item->next;
701 // will take care of removing the item and notifying others