Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Get the params
- if ( [commandParts count] >= 6 )
- {
- NSArray *ids = nil;
- NSArray *caches = nil;
- NSArray *bgs = nil;
- NSArray *wavURLs = nil;
- NSArray *mp3URLs = nil;
- NSString *errMsg = nil;
- // id=[soundID],[soundID],...
- paramParts = [[commandParts objectAtIndex: 1] componentsSeparatedByString: @"="];
- if ( [paramParts count] >= 2 )
- {
- ids = [[paramParts objectAtIndex: 1] componentsSeparatedByString: @","];
- }
- // cache=[1|0],[1|0],...
- paramParts = [[commandParts objectAtIndex: 2] componentsSeparatedByString: @"="];
- if ( [paramParts count] >= 2 )
- {
- caches = [[paramParts objectAtIndex: 1] componentsSeparatedByString: @","];
- }
- // bg=[1|0],[1|0],...
- paramParts = [[commandParts objectAtIndex: 3] componentsSeparatedByString: @"="];
- if ( [paramParts count] >= 2 )
- {
- bgs = [[paramParts objectAtIndex: 1] componentsSeparatedByString: @","];
- }
- // wav=[soundURL],[soundURL],...
- paramParts = [[commandParts objectAtIndex: 4] componentsSeparatedByString: @"="];
- if ( [paramParts count] >= 2 )
- {
- wavURLs = [[paramParts objectAtIndex: 1] componentsSeparatedByString: @","];
- }
- // mp3=[soundURL],[soundURL],...
- paramParts = [[commandParts objectAtIndex: 5] componentsSeparatedByString: @"="];
- if ( [paramParts count] >= 2 )
- {
- mp3URLs = [[paramParts objectAtIndex: 1] componentsSeparatedByString: @","];
- }
Add Comment
Please, Sign In to add comment