MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / AudioRemoveNotifyEventQueue

Function AudioRemoveNotifyEventQueue

ps3fw/cellAudio.cpp:1792–1819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1790}
1791
1792error_code AudioRemoveNotifyEventQueue(u64 key, u32 iFlags)
1793{
1794 auto& g_audio = g_fxo->get<cell_audio>();
1795
1796 std::lock_guard lock(g_audio.mutex);
1797
1798 if (!g_audio.init)
1799 {
1800 return CELL_AUDIO_ERROR_NOT_INIT;
1801 }
1802
1803 for (auto i = g_audio.keys.cbegin(); i != g_audio.keys.cend(); i++)
1804 {
1805 if (lv2_obj::check(i->port) && i->port->key == key)
1806 {
1807 if (i->flags != iFlags)
1808 {
1809 break;
1810 }
1811
1812 g_audio.keys.erase(i);
1813
1814 return CELL_OK;
1815 }
1816 }
1817
1818 return CELL_AUDIO_ERROR_TRANS_EVENT;
1819}
1820
1821error_code cellAudioRemoveNotifyEventQueue(u64 key)
1822{

Calls 3

cbeginMethod · 0.45
cendMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected